Skip to content

Auth

Registration, login session, and workspace bootstrap for new organizations.

Key APIs

MethodPathPurpose
POST/v1/auth/signupEmail/password signup and new workspace
POST/v1/auth/signup/googleGoogle signup and new workspace
POST/v1/auth/verify-emailConfirm email after client verifies with Firebase
POST/v1/auth/resend-verificationResend verification email
GET/v1/auth/meCurrent user and organization
POST/v1/auth/logoutRevoke refresh tokens

Business Rules

  • First user in a new workspace is admin and active; organization slug is generated uniquely.
  • Signup creates the organization, user, Firebase account, and grants trial credits when enabled.
  • Resend verification always returns the same message (no email enumeration).

Dependencies

  • Firebase Admin (users, tokens, verification)
  • Credits module (trial grant on signup)

Sophia AI Interview Platform — Internal Documentation