The login endpoint verifies the provided credentials against the database and, if valid, returns a signed JSON Web Token (JWT) alongside the user’s profile and their associated role permissions. You must include this token as aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/scoria02/marbes2021_backend/llms.txt
Use this file to discover all available pages before exploring further.
Bearer token in the Authorization header of every subsequent authenticated request.
Request
Method:POSTPath:
/api/auth/loginAuthentication: None required
Content-Type:
application/json
Body parameters
The user’s email address. One of
email, name, or code is required.The user’s username. One of
email, name, or code is required.An alternative login code identifier. One of
email, name, or code is required.The user’s plaintext password. Compared against the stored bcrypt hash.
Exactly one identifier field (
email, name, or code) must be present in the request body alongside password. Omitting all three returns a 400 validation error.Response
200 — success
Always
true on a successful response.Examples
Success response
200
Error responses
401
400
500