Fetch middleware (or specifically jwt decode)

Hey I'm trying to set up authentication verification on workers but couldn't find how to set up middlewares for jwt authentication Thanks
1 Reply
Chaika
Chaika4mo ago
Like this: https://github.com/panva/jose, or this: https://github.com/tsndr/cloudflare-worker-jwt#readme Not sure what you mean by middleware. Pages has actual middleware support, and some routers like hono have their own middleware stuff
GitHub
GitHub - tsndr/cloudflare-worker-jwt: A lightweight JWT implementat...
A lightweight JWT implementation with ZERO dependencies for Cloudflare Workers. - tsndr/cloudflare-worker-jwt