Nonchalantly Performs Magic

    slspress-jwt-authorizer

    2.2.5 • Public • Published

    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();

    Keywords

    none

    Install

    npm i slspress-jwt-authorizer

    DownloadsWeekly Downloads

    16

    Version

    2.2.5

    License

    MIT

    Unpacked Size

    66.2 kB

    Total Files

    21

    Last publish

    Collaborators

    • withreason_npm