Skip to content
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

Add clientId example to JWT tutorial #488

Closed
funkyboy opened this issue Aug 6, 2018 · 0 comments
Closed

Add clientId example to JWT tutorial #488

funkyboy opened this issue Aug 6, 2018 · 0 comments
Labels
content-request A request for new content, as opposed to changing/fixing existing content

Comments

@funkyboy
Copy link
Contributor

funkyboy commented Aug 6, 2018

Tutorial is here: https://www.ably.io/tutorials/jwt-authentication
It includes an example with capabilities

var jwtPayload =
    {
        'x-ably-capability': JSON.stringify({ '*': ['publish', 'subscribe'] })
    }

I'd add also an example with clientId, otherwise customers might have a hard time finding out the key name for clientId, which is x-ably-clientId

Related discussion: ably/ably-cocoa#664 (comment)

@funkyboy funkyboy added the content-request A request for new content, as opposed to changing/fixing existing content label Aug 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content-request A request for new content, as opposed to changing/fixing existing content
Development

No branches or pull requests

1 participant