Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 1.28 KB

File metadata and controls

24 lines (15 loc) · 1.28 KB

👷 cloudflare-worker-template-auth0-jwt Hello World... with a valid JWT!

A template for kick starting a Cloudflare worker project with validation of Auth0 JWTs.

index.js is the content of the Workers script. Note the use of the IsValidJwt function.

auth0-jwt-validation.js is where all the validation work occurs.

Setting up your JWK

IMPORTANT You must setup your JWK info in code, in auth0-jwt-validation.js

You can get your JWK info from https://[your_domain].auth0.com/.well-known/jwks.json

To learn more checkout the Setup and Testing instructions.

Wrangler

To generate using wrangler

wrangler generate myApp https://github.com/bcnzer/cloudflare-worker-template-auth0-jwt

Serverless

To deploy using serverless add a serverless.yml file.