-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: add topics and disposable token code snippets for dev docs #484
Conversation
|
||
// Generate a disposable token with read-only access to all topics in one cache | ||
var allTopicsOneCacheToken = await authClient.GenerateDisposableTokenAsync( | ||
DisposableTokenScopes.TopicSubscribeOnly(CacheSelector.ByName("squirrel"), TopicSelector.AllTopics), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one can be changed to remove CacheSelector.ByName
once the additional predefined scope functions are released
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for adding those!
This LGTM! I think @nand4011 should take a look at the Topic examples before you merge, and if he's good with it, |
Addresses #453 by adding code snippet for
GenerateDisposableToken
that will be pulled into the dev docs. This snippet can be used here and here.Addresses #459 by adding code snippets for instantiating a topic client, publishing to a topic, and subscribing to a topic. These examples will be used on this page.