Frontend Authentication

Use when the user asks to implement JWT login with refresh tokens in the browser, OAuth2/OIDC with PKCE, protected routes and route guards, token storage, sessions, logout, SSO, passkeys or MFA screens. Produces secure client-side auth flows for any framework and provider. Not for server-side token validation and auth APIs (use backend-auth-patterns).

45 stars 6 forksFrontend & Design

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add j4flmao/agent-skills --skill frontend-authentication
Manual install
git clone --depth 1 https://github.com/j4flmao/agent-skills.git /tmp/agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/agent-skills/skills/frontend/universal/authentication ~/.claude/skills/frontend-authentication

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Frontend Authentication

## Purpose
Implement secure authentication on the frontend: token acquisition, storage, route protection, session refresh, and logout — compatible with any auth provider. Tokens are stored securely. Routes are guarded by middleware or wrapper components. OAuth flows follow PKCE best practices.

## Agent Protocol

### Trigger
Exact phrases: "auth", "authentication", "login", "signup", "JWT", "OAuth", "route guard", "protected route", "token storage", "refresh token", "session", "access token", "logout", "SSO", "magic link", "MFA".

### Input Context
- Framework (React, Vue, Angular, Svelte)
- Auth provider (Auth0, Clerk, Supabase, Firebase, Cognito, custom)
- OAuth or credentials-based flow
- Session strategy (JWT + refresh token vs httpOnly cookie)
- Route protection pattern (middleware, wrapper, guard)

### Output Artifact
Complete auth integration: provider config, auth hook/context, protected route component, token management, login/logout flows.

### Response Format
```
## Strategy
<auth-provider, token-storage, route-guard-pattern>

## Setup
<provider-config, auth-context>

## Implementation
<login, logout, token-refresh, protected-routes>

## Session
<persistence, recovery, timeout>

—
Compression footer: frontend-auth/v1 | provider: <provider> | storage: <httpOnly|memory|localStorage> | routes: <count>
```

No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output — why use many token when few do trick.
Read the full skill on GitHub

Details

Skill name
frontend-authentication
Path
skills/frontend/universal/authentication/SKILL.md
License
MIT
Repo updated
17 November 2026

FAQ

What does the Frontend Authentication skill do?

Use when the user asks to implement JWT login with refresh tokens in the browser, OAuth2/OIDC with PKCE, protected routes and route guards, token storage, sessions, logout, SSO, passkeys or MFA screens. Produces secure client-side auth flows for any framework and provider. Not for server-side token validation and auth APIs (use backend-auth-patterns).

How do I install the Frontend Authentication skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add j4flmao/agent-skills --skill frontend-authentication. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Frontend Authentication popular?

It lives in j4flmao/agent-skills, which has 45 GitHub stars and 6 forks.

Related skills

Agent Observability

45

j4flmao/agent-skills

Use when the user asks about agent observability, tracing agent reasoning, debugging an agent loop, OpenTelemetry GenAI spans for LLM calls, LLM cost tracking per agent, agent audit logs or hallucination/eval monitoring in production. Produces instrumentation config, trace schema, dashboards, alerts and cost attribution. Not for generic service tracing without LLMs (use devops-opentelemetry).

DevOps & Cloud

AI Agent Architectures

45

j4flmao/agent-skills

Use when the user asks to build an AI agent, design an agent that calls tools and keeps memory, write an agent system prompt or pick an agent framework (Claude Agent SDK, OpenAI Agents SDK, LangGraph). Produces an architecture brief covering loop, tools, memory, guardrails and evals, routing depth to child skills. Not for workflow patterns (use ai-agentic-workflows).

AI, LLMs & Agents

AI Agent Core Loop

45

j4flmao/agent-skills

Use when the user asks about the agent loop, ReAct vs plan-and-solve, re-planning, Reflexion, an agent stuck in a loop, max iterations or termination conditions. Produces a loop spec or patch with state, success predicate, caps and no-progress detection. Not for overall agent design (use ai-agent-architectures) or tool schemas (use tool-calling-principles).

AI, LLMs & Agents

Frontend Browser Caching

45

j4flmao/agent-skills

Use when the user asks about Cache-Control headers, ETag, immutable hashed assets, cache busting, stale-while-revalidate, bfcache or service worker cache strategies for page loads. Produces browser caching headers and asset versioning rules. Not for installable offline apps (use frontend-pwa) or CDN edge config (use cdn-edge).

Frontend & Design

Frontend Astro Patterns

45

j4flmao/agent-skills

Use when the user asks about Astro island patterns, client:load / client:visible / client:idle, server islands, view transitions, Astro integrations, content collection queries or per-route prerendering. Produces hydration and rendering patterns for an existing Astro site. Not for initial Astro project setup (use frontend-astro-architecture).

Frontend & Design

Frontend Bundler Tools

45

j4flmao/agent-skills

Use when the user asks about Vite, webpack, Rspack, Turbopack, Rolldown, esbuild, bundle config, tree shaking, code splitting, chunking, build speed or migrating webpack to Vite. Produces bundler configuration and build-optimization steps. Not for Core Web Vitals field work (use web-performance) or CI pipelines (use cicd-pipeline).

Frontend & Design

Browse the most popular Claude skills, all frontend & design skills, or write your own with the skills generator.