@esmodule/jwt-verify-webcrypto

0.0.4 • Public • Published

@esmodule/jwt-verify-webcrypto

ES module to verify JWT signatures using the WebCrypto API.

Usage

import authenticate from '@esmodule/jwt-verify-webcrypto'

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

    return authenticate(token, options)
}

export default validateToken

Dependents (0)

Package Sidebar

Install

npm i @esmodule/jwt-verify-webcrypto

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

16.6 kB

Total Files

11

Last publish

Collaborators

  • antstanley