Base path: /api/user Source: src/routes/user.route.ts

Admin routes

Authenticated routes

Public routes

Request validation

Login behaviour

  • Returns 403 with userLoggedIn: true if the email is already logged in and isForceLogin is not set.
  • MFA-enabled users (isMfaVerified) submit their TOTP code as the password field.
  • On success, returns JWT in loginToken and populates pageAccess with active index settings.