@esmodule/jwt-verify

0.2.1 • Public • Published

@esmodule/jwt-verify

ES module to verify JWT signatures.

Usage

import authenticate from '@esmodule/jwt-verify'

const validateToken = async (token) => {
    const options = {
        jwksUri: 'https://<openid-tenant-url>/.well-known/jwks.json',
        requestHeaders: {}
    }

    return authenticate(token, options)
}

export default validateToken

Readme

Keywords

Package Sidebar

Install

npm i @esmodule/jwt-verify

Weekly Downloads

0

Version

0.2.1

License

MIT

Unpacked Size

41.4 kB

Total Files

21

Last publish

Collaborators

  • antstanley