consulate-simple-secrets
simple-secrets token plugin for consulate
Usage
Just register consulate-simple-secrets
as a plugin with your consulate server:
var consulate = ss = ; var app = ; app;
This will return encrypted tokens with embedded token information:
u: 'user-id' s: 42 // compressed scopes c: 'client-id' e: 1234 // expiration date
TODO
explain how to extract token information
Advanced Usage
The options accepts a transform
function to change the token information. This can be used to add extra fields in the token.
app;
Tests
$ npm test