Authentication
Login, session user lookup, password recovery, browser reset link handling, and first-login password change
Login
Authenticates email and password, checks account lockout/verification/approval status and maintenance mode, and returns a 1-hour JWT Bearer token.
Access: Public (no JWT required).
Login › Request Body
emailpasswordLogin › Responses
OK
emailtokenSigned HS256 JWT Bearer token valid for 1 hour.
roleAssigned institutional role.
firstLoginTrue when the caller must change their initial password via POST /auth/change-first-password.
Get Current User
Returns the server-authoritative email, name, role, approval/firstLogin flags, and optional department metadata from the database.
Access: Authenticated caller (Authorization: Bearer <token>).
Get Current User › Responses
OK
emailnameroleisFirstLoginisApproveddepartmentIdPresent when the user is assigned to a department.
departmentNamePresent when the user is assigned to a department.
Change First Password
Updates the initial password for an authenticated user whose firstLogin flag is true. Identity is derived strictly from the JWT Principal.
Access: Authenticated caller (Authorization: Bearer <token>).
Change First Password › Request Body
newPassword^(?=.*[a-z])(?=.*[A-… · requiredChange First Password › Responses
OK
Forgot Password
Verify Reset Link (Browser)
Validates a password-reset token clicked from an email link and issues a 302 Found redirect to the web reset-password UI with either ?token=... or ?error=.... Programmatic REST clients should submit reset tokens directly to POST /auth/reset-password.
query Parameters
tokenPassword-reset token included in the verification email link
Verify Reset Link (Browser) › Responses
Redirects browser to the web frontend /reset-password screen
