cloudflare-workers-auth

Validate JWTs at the edge for Cloudflare Workers using jose and Supabase JWKS.

1|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/wildbitca/ai-resources --skill cloudflare-workers-auth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-workers-auth
Source: https://github.com/wildbitca/ai-resources/tree/main/skills/cloudflare-workers-auth
Command: npx skills add https://github.com/wildbitca/ai-resources --skill cloudflare-workers-auth

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Protect Cloudflare Workers endpoints at the edge by validating JWTs and controlling access without round-trips to your auth service.

Core Features & Use Cases

  • JWT validation at the edge using jose with Supabase JWKS for quick, secure verification.
  • Presigned URL generation with short expiry to securely handle uploads.
  • Enforced edge security with RLS-backed policies and zero external API calls for validation.

Quick Start

Configure your Worker to verify Authorization headers with the provided JWT verifier and issue presigned URLs for authenticated users.

Frequently Asked Questions about cloudflare-workers-auth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate Supabase JWTs at the edge in Cloudflare Workers?

Validate Supabase JWTs at the edge by using the jose library to verify signatures against Supabase JWKS, enforcing access controls directly within Cloudflare Workers without round-trips to your auth service.

How do I generate presigned URLs for secure uploads in Cloudflare Workers?

Generate presigned URLs for secure uploads by issuing short-expiry links to authenticated users within Cloudflare Workers, ensuring protected upload endpoints are guarded by validated edge JWTs.

Do I need external API calls for JWT validation in Cloudflare Workers?

You do not need external API calls for JWT validation in Cloudflare Workers when using edge validation with Supabase JWKS, which enables zero round-trips to your auth service during request verification.

Can I use Supabase Row Level Security with Cloudflare Workers edge validation?

You can enforce Supabase Row Level Security (RLS) policies alongside Cloudflare Workers edge validation, creating a defense in depth strategy for your protected routes and upload endpoints.

What is the best way to protect Cloudflare Workers endpoints without round-trips?

The best way to protect Cloudflare Workers endpoints without round-trips is edge JWT validation using jose and Supabase JWKS, verifying every request signature directly at the edge for immediate access control.

Why does edge JWT validation fail when using Supabase JWKS in Cloudflare Workers?

Edge JWT validation using Supabase JWKS fails when signature verification via jose encounters expired tokens, missing Authorization headers, or improper JWKS expiry handling, requiring correct edge configuration to resolve.