/api/user
Source: src/routes/user.route.ts
Admin routes
Authenticated routes
Public routes
Request validation
Login behaviour
- Returns
403withuserLoggedIn: trueif the email is already logged in andisForceLoginis not set. - MFA-enabled users (
isMfaVerified) submit their TOTP code as thepasswordfield. - On success, returns JWT in
loginTokenand populatespageAccesswith active index settings.