edgeworkers-examples
edgeworkers-examples copied to clipboard
Add jwt-validation example
Overview
A simple JSON Web Token decoder and validator, using HS256. A responseProvider is included to demonstrate the headers passed to origin.
Features
A JWT class to decode and validate encoded JWT strings. Custom CryptoJS lib for HMAC SHA256 signature generation.