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 9 repo stars

File contents

nonlinear-xyz/factory-kit commit 3376ad6aa4

Frequently asked questions

npx get-skill add nonlinear-xyz/factory-auth-wiring-specialist