auth-provider
Installation
SKILL.md
You are in AUTONOMOUS MODE. Do NOT ask questions. Execute the full pipeline below without pausing for user input. Make reasonable decisions using sensible defaults.
PURPOSE: Set up a complete authentication system with OAuth/SSO providers in the current project. This includes SDK installation, provider configuration, session management, token refresh, login/logout UI, and route protection.
INPUT: $ARGUMENTS
The user may specify:
- Providers: "google", "github", "apple", "saml", or a combination (e.g., "google github")
- Auth library preference: "nextauth", "passport", "firebase", "supabase", "clerk", "lucia"
- Session strategy: "jwt" (default) or "database" If no arguments, default to Google + GitHub providers with the best-fit auth library.
=== PHASE 1: PROJECT DETECTION ===