# auth0-jwt-lambda

> Quickly integrate Auth0 into your serverless lambda function.

Latest version **1.0.1** (published 2020-08-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install auth0-jwt-lambda
pnpm add auth0-jwt-lambda
yarn add auth0-jwt-lambda
bun add auth0-jwt-lambda
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-08-01 |
| First published | 2020-07-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| Author | Stephen Miracle - Lunar Collective |
| Maintainers | thatmiracle |
| Keywords | auth0, lambda, serverless |

## Links

- npm: https://www.npmjs.com/package/auth0-jwt-lambda
- Repository: https://github.com/Lunar-Collective/auth0-jwt-lambda
- Homepage: https://github.com/Lunar-Collective/auth0-jwt-lambda#readme
- Issues: https://github.com/Lunar-Collective/auth0-jwt-lambda/issues
- npm.io page: https://npm.io/package/auth0-jwt-lambda

## Dependencies (2)

- [jwks-rsa](https://npm.io/package/jwks-rsa.md) ^1.8.1
- [jsonwebtoken](https://npm.io/package/jsonwebtoken.md) ^8.5.1

## Alternatives

- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads
- [escher-request](https://npm.io/package/escher-request.md) — 545 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2020-08-01
- 1.0.0 — 2020-07-31
- 0.1.0 — 2020-07-31

## README

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

---
_Source: https://npm.io/package/auth0-jwt-lambda · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
