cfaccess
v2.0.5
Published
Easily verify JWTs associated with Cloudflare Access
Downloads
3
Readme
cfaccess
Easily verify JWTs associated with Cloudflare Access
Install
yarn add cfaccess
Usage
async function main() {
let token = 'The.Big.JWT';
let audience = 'BIGHEXSTRING';
let issuer = 'https://user.cloudflareaccess.com';
let kids = ['BIGHEXSTRING1', 'BIGHEXSTRING2'];
let decoded = await verify(token, audience, issuer, kids);
// decoded == {...} || false
}