/role-fullstack:auth-flowfrom role-fullstack
Implements full authentication flows: login, signup, forgot-password, JWT + refresh tokens, session auth, social login (Google, GitHub, Apple), MFA/2FA, protected routes, and role-based UI.
Ships in role-fullstack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Activate when adding authentication or authorization to a fullstack application -- login/signup pages, protected routes, social login, token management, or role-based access control.
| Library | Framework | Session Store | OAuth Built-in | MFA Support |
|---|---|---|---|---|
| NextAuth.js / Auth.js | Next.js, SvelteKit | DB / JWT | Yes | Via adapter |
| Lucia | Any | DB | Manual | Manual |
| Clerk | Any | Managed | Yes | Yes |
| Supabase Auth | Any | Managed | Yes | Yes |
react-hook-form + zod for validation. Fields: email, password, confirm password (signup).bcrypt (cost 12+) or argon2, store user in DB.httpOnly, secure, sameSite=lax cookie) or JWT pair.callbackUrl).httpOnly cookie. Rotate on every use (one-time use tokens)./api/auth/refresh, replays the original request.{APP_URL}/api/auth/callback/{provider}.otpauth or speakeasy library. Generate a secret, show QR code, verify 6-digit code.// Next.js middleware.ts
export function middleware(request: NextRequest) {
const token = request.cookies.get('session-token');
if (!token && request.nextUrl.pathname.startsWith('/dashboard')) {
return NextResponse.redirect(new URL('/login', request.url));
}
}
export const config = { matcher: ['/dashboard/:path*', '/api/protected/:path*'] };
admin, editor, viewer.<Can action="edit" resource="post"> component or usePermissions() hook to conditionally render UI elements.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
authentication, jwt, oauth, mfa, role-based-access, social-login
npx claudepluginhub rnavarych/alpha-engineer --plugin role-fullstack8 skills in this plugin
/api-frontend-integrationrole-fullstack:api-frontend-integrationIntegrate APIs with frontend applications using type-safe patterns: tRPC for
end-to-end type safety, REST client generation (openapi-typescript, orval),
TanStack Query / SWR for data fetching, optimistic updates, and error handling.
/deployment-workflowrole-fullstack:deployment-workflowSet up deployment workflows for Vercel, Netlify, Railway, Render, and Docker. Covers preview environments per PR, database migrations in CI (expand-contract pattern), environment variable validation, health check endpoints, and rollback procedures. Use when configuring deployment pipelines, managing env vars across stages, or establishing rollback runbooks./file-upload-handlingrole-fullstack:file-upload-handlingImplement file upload flows with presigned URLs (S3, GCS, R2), multipart/tus resumable uploads, Sharp image processing, drag-and-drop UI with progress indicators, server-side MIME validation via magic bytes, virus scanning, and CDN serving. Use when adding profile pictures, document attachments, media galleries, or any user-submitted file feature./fullstack-scaffoldingrole-fullstack:fullstack-scaffoldingScaffold production-ready fullstack projects with Next.js (App Router), Remix, Nuxt 3, SvelteKit, Astro, Blitz, RedwoodJS, or Wasp. Covers framework CLI starters, headless CMS options (Payload, Directus, Strapi, Keystone), feature/layer/domain project structures, Turborepo monorepo layout, env var validation, Docker Compose for local services, and dev tooling (Turbopack, Vite, HMR). Use when bootstrapping a new project or auditing an existing one for missing foundations./monorepo-managementrole-fullstack:monorepo-managementManage monorepos with Turborepo (pipelines, local/remote caching, task graph) or Nx (generators, affected commands, module boundaries). Covers pnpm workspaces setup, shared packages (ui, types, utils, config, database, validators), cross-project dependency rules, and CI optimization via change detection and parallel execution. Use when setting up or maintaining a monorepo, creating shared packages, or optimizing CI build times./real-time-featuresrole-fullstack:real-time-featuresImplement real-time features using WebSockets (Socket.io, ws), Server-Sent Events (SSE), Supabase Realtime, Firebase, or Pusher. Covers presence indicators, live cursors, CRDT-based collaborative editing (Yjs, Automerge), notifications with offline delivery, chat with optimistic rendering, and Redis Pub/Sub backplane for multi-node scaling. Use when adding live updates, chat, collaboration, or any server-to-client or bidirectional communication.Other plugins' skills for the same job