Created
March 2, 2016 14:25
-
-
Save tbarbugli/d8df26f570f70281bdd9 to your computer and use it in GitHub Desktop.
create_stream_jwt.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var streamSigner = require('getstream/src/lib/signing'); | |
var api_key = 'AAABBBCCCDDD'; | |
streamSigner.JWTScopeToken(api_key, 'feed', '*', {'feedId': '*'}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this creates a token for the app with api_key 'AAABBBCCCDDD' that allows read/write operations on all feeds