Skip to content

feat(sdk-flutter): stream share-grant mint/revoke + viewer link - #183

Merged
argiad merged 1 commit into
developmentfrom
feat/flutter-share-grants-sdk
Nov 12, 2026
Merged

argiad merged 1 commit into
developmentfrom
feat/flutter-share-grants-sdk

Conversation

@argiad

@argiad argiad commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Host-only share-link support for FlurryChat/Android/iOS clients sharing one SDK surface:

  • createStreamShareGrant(streamId, {ttlSecs, linkAccess}) — POST …/share-grants, decodes the minted grant.
  • revokeStreamShareGrant(streamId, grantId) — DELETE the grant (idempotent server-side).
  • shareWatchUrl(streamId, grantId) — anonymous /_mm/viewer/watch/<id>?grant=<g> link derived from the API origin.

MockClient tests pin method/path/body and the URL shape. Local flutter test full suite green (29 tests in package). First consumer: FluffyChat host Share/Manage-link control (separate repo).

Host-only share-link support for FlurryChat/Android/iOS clients: createStreamShareGrant (POST share-grants, optional link_access flip to public), revokeStreamShareGrant (DELETE), and shareWatchUrl deriving the anonymous /_mm/viewer/watch link from the API origin. Covered by MockClient tests (method, path, body, URL shape).
@argiad
argiad merged commit aff47ae into development Nov 12, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant