cloudflare-workers-authentication
Installation
SKILL.md
Cloudflare Workers - Authentication & Security
When to use this skill
When implementing secure user authentication systems for Cloudflare Workers APIs, including session management, challenge-response flows, and security middleware.
Session-Based Authentication with KV
Session Data Structure
// src/lib/server/auth/session.ts
export interface SessionData {
userId: number;
createdAt: string;
expiresAt: string;
deviceFingerprint?: string;
lastActivity?: string;
}