Skip to content

Auth

FundAdmin AI uses NextAuth v5 with magic link (passwordless) authentication.

Sign-in Flow

  1. User enters their email at /signin
  2. A magic link is sent via email (Resend transport in production)
  3. In development, the link is printed to the console — no email service needed
  4. User clicks the link, lands on /verify, and is signed in
  5. On first login, redirected to /onboarding; thereafter to the workspace home

Configuration

Environment VariableDescription
AUTH_SECRETAuto-generated on cp .env.example .env — do not share
RESEND_API_KEYResend API key for production email delivery
NEXTAUTH_URLCanonical URL (defaults to http://localhost:3000 in dev)

In development with no RESEND_API_KEY, magic links are logged to the console transport — no email setup required.

Session

NextAuth v5 manages sessions via JWT. The session is available server-side via auth() and client-side via useSession().

Auth Routes

RoutePurpose
/signinSign-in page
/signupSign-up page (also issues magic link)
/verifyMagic link callback handler
/api/auth/[...nextauth]NextAuth route handler

T1 (skills + CLI) and T2 (vault template) are MIT licensed.