Skip to main content

Documentation 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.

GET /auth/me decodes and verifies the JWT passed in the Authorization header, then returns the token payload. Other services in Módulo Horario call this endpoint internally to check the caller’s role before allowing write operations. You can use it to verify that a stored token is still valid. Base URL: http://localhost:8001

Request

Headers

Authorization
string
required
Bearer token obtained from POST /auth/login. Format: Bearer eyJ...

Response

Returns the decoded JWT payload directly.
id
integer
Numeric primary key of the authenticated user.
correo
string
Email address stored in the token at login time.
rol
string
Either DOCENTE or ADMIN.

Example

curl -s http://localhost:8001/auth/me \
  -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
The payload returned is the raw JWT body — it reflects the information encoded at login time. If an admin updates the user’s role after the token was issued, the response here will not reflect the change until the user logs in again.

Build docs developers (and LLMs) love