@we-made/jwks-verify
v2.0.0
Published
Verify JWT using keys from a keyserver
Downloads
4
Readme
@we-made/jwks-verify
Example
import { jwksVerify } from '@we-made/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/[email protected]';
const token = '...some JWT issued by Google';
const verifiedClaims = await jwksVerify(issuer, audience, keyServer, token)
}