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