The login endpoint verifies a teacher or administrator’s credentials and returns a short-lived JWT. Include the token in subsequent requests asDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Luisanchez0/modulo_Horario/llms.txt
Use this file to discover all available pages before exploring further.
Authorization: Bearer <token>. The endpoint is rate-limited to 5 requests per minute per IP in production (enforced by Nginx); a 429 response means you have been throttled.
Base URL: http://localhost:8001
Request
The account’s email address.
The account’s plain-text password. It is compared against the stored bcrypt hash server-side.
Response
- 200 — success
- 401 — invalid credentials
- 429 — rate limited
Signed JWT. Decode it to inspect the payload:
id, correo, and rol (DOCENTE or ADMIN).Examples
The JWT payload contains
id, correo, and rol. Store the token in memory rather than localStorage to reduce XSS exposure.