Set Up Auth

Use when adding authentication to a frontend SPA — treats the current user as server state (TanStack Query), keeps tokens out of localStorage (httpOnly cookies or in-memory access + refresh), wires login/logout mutations, a transparent 401→refresh retry in the fetcher, and route guards that read the user query.

VelimirMueller Updated

File contents

VelimirMueller/claude_development_skills/tree/main/skills/frontend/set-up-auth commit 1496e0f67f

Frequently asked questions

npx skillmds@latest add velimirmueller/set-up-auth