Skip to main content

Auth and accounts

Registration paths

PathUIAPIResult
Learner/auth/registerPOST /auth/registerSTUDENT; email verify
Coach/become-instructorPOST /auth/register-instructorPending → /account/pending-approval → coach setup
Employer/auth/register/employerPOST /auth/register-employerEMPLOYER/dashboard/talent

Session & email

RoutePurpose
/auth/loginSign in
/auth/verify-emailConfirm token
/auth/verify-email/pendingWaiting state
/auth/resend-verificationResend
/auth/forgot-password / /auth/reset-passwordReset flow

Base API: /api/v1/auth. Frontend details: monorepo frontend/docs/AUTHENTICATION.md.

Account gates

RouteWhen
/account/pending-approvalInstructor not yet approved
/account/accept-inviteTeam invite token
/account/inactiveInactive
/account/suspendedSuspended
/account/bannedBanned
/account/deletedDeleted
/unauthorizedMissing permission / wrong role

Permissions

  • Dashboard nav filters by role (nav.types.ts + sidebar).
  • Admin sidebar filters by permission strings (users:read, career_tracks:manage, …) — see frontend/src/lib/permissions.ts and backend/src/config/permissions.ts.
  • Employer CMH perms include talent:search, jobs:manage, placements:manage.