An open API service indexing awesome lists of open source software.

https://github.com/eldimious/jwt-jwks-authentication


https://github.com/eldimious/jwt-jwks-authentication

Last synced: 6 months ago
JSON representation

Awesome Lists containing this project

README

          

# jwt-jwks-authentication

> Npm module that handles authentication. An Authorization header with value Bearer USER_TOKEN_HERE is expected to be present in all requests.
It retrieves RSA signing keys from a JWKS (JSON Web Key Set) endpoint if jwksUri provided, otherwise revifies and decodes token if
secret provided.

[![Build Status](https://travis-ci.org/eldimious/jwt-jwks-authentication.svg?branch=master)](https://travis-ci.org/eldimious/jwt-jwks-authentication) [![Coverage Status](https://coveralls.io/repos/github/eldimious/jwt-jwks-authentication/badge.svg?branch=master)](https://coveralls.io/github/eldimious/jwt-jwks-authentication?branch=master)

## Usage

First, install `jwt-jwks-authentication` as a dependency:

```shell
npm install --jwt-jwks-authentication
```