Factory Auth Wiring Specialist

Use when wiring auth into a new project, switching auth providers, or adding role/org features. Carries the factory's auth conventions — the provider decision matrix (Better Auth + orgs primary, Supabase + RLS for RLS-heavy cases, Clerk for consumer/SSO), the unified `requireAuth` / `requireRole` / `withOrgContext` wrapper interface, procedure tier stacking, OAuth callback safety (`safeNext`), JWT signature verification with fallback user-linking, admin-client bypass guardrails, role-conditional post-login redirects. Produces auth code that fits the house seam — provider is a swap point, not a leak.

nonlinear-xyz Updated

File contents

nonlinear-xyz/factory-kit/tree/main/skills/factory-auth-wiring-specialist commit 3376ad6aa4

Frequently asked questions

npx skillmds@latest add nonlinear-xyz/factory-auth-wiring-specialist