Anyone have a n example of Validating Cf-Access-Jwt-Assertion from a worker

The JS example in the docs https://developers.cloudflare.com/cloudflare-one/identity/authorization-cookie/validating-json/ uses npm libraries, which means I have to use node_compat = true in wrangler.toml Are they any examples that do not require this?
Validate JWTs · Cloudflare Zero Trust docs
When Cloudflare sends a request to your origin, the request will include an application token as a Cf-Access-Jwt-Assertion request header and as a …
1 Reply
esdee
esdeeOP11mo ago
I found https://github.com/panva/jose which works great for my use
GitHub
GitHub - panva/jose: JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Bro...
JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes. - GitHub - panva/jose: JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, C...
Want results from more Discord servers?
Add your server