New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

auth0-jwt-lambda

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auth0-jwt-lambda

Quickly integrate Auth0 into your serverless lambda function.

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

auth0-jwt-lambda

Quickly integrate Auth0 into your serverless lambda function

Background

The current instructions for integrating Auth0 depend on the usage of an express server. This package wraps the instructions and make an easy implementation that can be used for any node backend. A common use case may be a lambda serverless function.

How to use

This is a pretty straightforward package to use. It contains a single function with 2 required parameters -- token and the domain. There are several optional parameters that you can also pass to give more control for auth0.

Example

const authVerify = require('auth0-jwt-lambda');

const verifiedPromise = authVerify.verify(request.headers.authorization.replace("Bearer ", ""), env.process.AUTH0_DOMAIN);

verifiedPromise.then(userInfo => {
  console.log(userInfo);
}).catch(err => {
  console.log(err);
});

Keywords

auth0

FAQs

Package last updated on 01 Aug 2020

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