Skip to content

Instantly share code, notes, and snippets.

@tbarbugli
Created March 2, 2016 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tbarbugli/d8df26f570f70281bdd9 to your computer and use it in GitHub Desktop.
Save tbarbugli/d8df26f570f70281bdd9 to your computer and use it in GitHub Desktop.
create_stream_jwt.js
var streamSigner = require('getstream/src/lib/signing');
var api_key = 'AAABBBCCCDDD';
streamSigner.JWTScopeToken(api_key, 'feed', '*', {'feedId': '*'});
@tbarbugli
Copy link
Author

this creates a token for the app with api_key 'AAABBBCCCDDD' that allows read/write operations on all feeds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment