This endpoint authenticates both clients (clientes) and barbers (barberos) on the EdgeTimer platform. A successful login returns a JWT session containing anDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/JulietaEM/EdgeTimer/llms.txt
Use this file to discover all available pages before exploring further.
accessToken, refreshToken, and expiry time, along with the authenticated user’s profile. The role field is required to distinguish between account types — credentials that match the wrong role are rejected.
Base URL
Request
POST /auth/login
Body parameters
The account type to authenticate as. Must be either
"cliente" or "barbero".Email address associated with the account. Normalized to lowercase before lookup.
Password for the account.
Examples
Response
200 OK
Confirmation message indicating a successful login.
JWT session credentials. Use the
accessToken to authenticate subsequent requests.Profile of the authenticated user.
Example response
Using the access token
Include theaccessToken from the session response in the Authorization header of all subsequent requests that require authentication:
Error responses
| Status | Description |
|---|---|
401 Unauthorized | Email or password is incorrect. |
401 Unauthorized | The provided role does not match the account type for these credentials. |
400 Bad Request | The role field contains a value other than "cliente" or "barbero". |
401 example — wrong credentials
401 example — role mismatch
400 example — invalid role