Returns the identity of the user associated with the current session. The server reads theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Nyverie/reservafacil/llms.txt
Use this file to discover all available pages before exploring further.
token cookie, verifies its HS256 signature and expiry via getSession(), and returns the decoded payload. This endpoint is the canonical way to hydrate client-side auth state on page load — for example, to show the user’s name in a navbar or gate access to protected UI routes.
Request
token cookie being present and valid. When calling from the browser, include credentials: 'include' to ensure the cookie is forwarded.
Response
200 — Success
The decoded JWT payload for the currently authenticated user.
The response reflects the data embedded in the JWT at sign time, not a live database read. If a user’s
nombre, email, or rol changes after the token was issued, /api/auth/me will return the stale values until the token expires or the user logs in again.Error Responses
| Status | error value | Cause |
|---|---|---|
401 | "No autenticado" | The token cookie is absent, has expired, or its signature is invalid. |