2.2.5 • Published 6 years ago

slspress-jwt-authorizer v2.2.5

Weekly downloads
4
License
MIT
Repository
-
Last release
6 years ago

#slspress-jwt-authorizer

#createRS256BearerAuthorizer

Creates an authorizer that provides access based on a valid JWT bearer token from auth0. Only the RS256 algorithm is supported.

Usage:

const { create } = require('slspress');
const { createRS256BearerAuthorizer } = require('slspress-jwt-authorizer');
const app = create();

const auth0PublicKey = '';// load this from some props of something.

app.on('authorizer').authorizer(createRS256BearerAuthorizer(auth0PublicKey));

module.exports = app.export();
2.2.5

6 years ago

2.2.3

7 years ago

2.2.2

7 years ago

2.2.0

7 years ago

2.1.2

7 years ago

2.1.1

7 years ago

2.1.0

7 years ago

2.0.6

7 years ago