2.1.0 • Published 2 months ago

fastify-auth0-verify v2.1.0

Weekly downloads
1,196
License
Apache-2.0
Repository
github
Last release
2 months ago

fastify-auth0-verify

Package Version ci

Auth0 verification plugin for Fastify.

Internally this is a lighweight wrapper around fastify-jwt-jwks and accepts most of the same options. The differences are highlighted in this document. Refer to the documentation in the fastify-jwt-jwks repository for general usage.

Installation

Just run:

npm install fastify-auth0-verify --save

Usage

The configuration options for this plugin are similar to those in fastify-jwt-jwks, except that this package accepts a domain option instead of jwksUrl:

  • domain: The Auth0 tenant domain. It enables verification of RS256 encoded JWT tokens. It is also used to verify the token issuer (iss). Either provide a domain (domain.com) or the full URL, including the trailing slash (https://domain.com/).

Contributing

See CONTRIBUTING.md

Developer notes

Tests

Tests are currently split into unit and integration. Integration tests need the following environment variables:

Env var
AUTH0_DOMAINAuth0 dashboard -> application -> Settings -> Domain
AUTH0_CLIENT_IDAuth0 dashboard -> application -> Settings -> Client ID
AUTH0_CLIENT_SECRETAuth0 dashboard -> application -> Settings -> Client Secret
AUTH0_API_AUDIENCEAuth0 application identifier

License

Copyright NearForm Ltd. Licensed under the Apache-2.0 license.

2.1.0

2 months ago

2.0.0

3 months ago

1.2.1

7 months ago

1.2.0

11 months ago

1.1.1

1 year ago

1.1.2

12 months ago

1.1.0

1 year ago

1.0.0

1 year ago

0.8.1

2 years ago

0.8.3

2 years ago

0.8.2

2 years ago

0.8.0

2 years ago

0.7.4

2 years ago

0.7.3

2 years ago

0.7.0

2 years ago

0.6.0

3 years ago

0.5.2

3 years ago

0.5.1

3 years ago

0.5.0

3 years ago

0.4.2

3 years ago

0.4.0

3 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago