@olibm/jwks-verify

2.0.0 • Public • Published

@olibm/jwks-verify

Example

import { jwksVerify } from '@olibm/jwks-verify'

async function example() {
    const audience = 'my-project-id';
    const issuer = `https://securetoken.google.com/${audience}`;
    const keyServer = 'https://www.googleapis.com/service_accounts/v1/jwk/securetoken@system.gserviceaccount.com';
    const token = '...some JWT issued by Google';
    const verifiedClaims = await jwksVerify(issuer, audience, keyServer, token)
}

Readme

Keywords

none

Package Sidebar

Install

npm i @olibm/jwks-verify

Weekly Downloads

71

Version

2.0.0

License

MIT

Unpacked Size

4.21 kB

Total Files

4

Last publish

Collaborators

  • moander