Authentication
User authentication operations
Creates a new user account. Admin registration requires whitelisted email.
User's email address
User's password
User role (optional for registration)
User registered successfully. Sets refreshToken cookie.
Invalid input data provided. See errors object for details.
Admin registration denied for non-whitelisted email.
An unexpected error occurred on the server.
Authenticates a user and returns tokens.
User's email address
User's password
User role (optional for registration)
Login successful. Sets refreshToken cookie.
Invalid input data provided. See errors object for details.
The specified resource was not found.
An unexpected error occurred on the server.
Generates a new access token using the refresh token cookie.
HTTP-only refresh token cookie.
Access token refreshed successfully.
Invalid input data provided. See errors object for details.
Authentication information is missing or invalid (e.g., missing/expired token).
An unexpected error occurred on the server.
Invalidates the refresh token and clears the cookie. Requires both access and refresh tokens.
JWT Access Token obtained via login/register/refresh
HTTP-only refresh token cookie.
Logout successful. Clears refreshToken cookie.
Invalid input data provided. See errors object for details.
Authentication information is missing or invalid (e.g., missing/expired token).
An unexpected error occurred on the server.
Last updated
Was this helpful?