🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

slspress-jwt-authorizer

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slspress-jwt-authorizer

JWT authorizer for use with slspress

npmnpm
Version
2.2.0
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 07 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts