The authentication endpoints handle account creation and login. Successful login returns a JSON Web Token (JWT) that expires after 7 days. Include this token in theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/geeky-hamster/Quizmaster/llms.txt
Use this file to discover all available pages before exploring further.
Authorization header as Bearer <token> when calling any protected endpoint.
POST /api/auth/register
Register a new user account. This endpoint is public and does not require authentication.Unique username for the account.
Password for the account.
Full display name of the user.
Optional academic or professional qualification.
Optional date of birth in ISO 8601 format (e.g.
1999-05-20).Confirmation message:
User registered successfully.| Status | Message |
|---|---|
| 400 | User already exists |
cURL
POST /api/auth/login
Authenticate an existing user and receive a bearer token. This endpoint is public and does not require authentication.The account username.
The account password.
JWT bearer token, valid for 7 days. Pass this as
Authorization: Bearer <token> on protected requests.| Status | Message |
|---|---|
| 404 | User not found |
| 401 | Invalid password |
cURL