Skip to content

Instantly share code, notes, and snippets.

@joawan
Created April 15, 2020 19:42
Show Gist options
  • Save joawan/42fa1a6816e6cc936f909012e2e9e68e to your computer and use it in GitHub Desktop.
Save joawan/42fa1a6816e6cc936f909012e2e9e68e to your computer and use it in GitHub Desktop.
Token introspection init
const tokenIntrospection = require('token-introspection')({
jwks_uri: 'https://example.com/jwks',
endpoint: 'https://example.com/introspect',
client_id: 'client-id',
client_secret: 'client-secret',
});
tokenIntrospection(token).then(console.log).catch(console.warn);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment