Register User
POST /auth/register/
Authentication: None required
Request Body
User’s email address (must be valid email format)
Username for the account
Password (must meet security requirements)
Optional phone number
Response
Success message
Login
POST /auth/login/
Authentication: None required
Request Body
User’s email address
User’s password
Response
Success message
User information
JWT access token (valid for 30 days). Include this token in the Authorization header for authenticated requests.
GitHub OAuth Login (Web)
GET /auth/github/login/web
Authentication: None required
Behavior: Redirects to GitHub OAuth authorization page. After successful authentication, redirects back to the configured frontend origin with user data and token as query parameters.
GitHub OAuth Login (Mobile)
GET /auth/github/login/mobile
Authentication: None required
Behavior: Redirects to GitHub OAuth authorization page. After successful authentication, redirects to the app deep link with token and code.
GitHub OAuth Callback
Endpoint:GET /auth/github/callback
Authentication: None required
Internal Use: This endpoint is called by GitHub after OAuth authorization. Do not call this endpoint directly.
Query Parameters
Authorization code from GitHub
State parameter for security verification
Request Password Reset
POST /auth/request-password-reset/
Authentication: None required
Request Body
Email address of the account to reset
Response
Confirmation message in Spanish
Verify Reset Code
POST /auth/verify-reset-code/
Authentication: None required
Request Body
User’s email address
Verification code received via email
Response
Success message
Temporary token for password reset (use in next step)
Reset Password
POST /auth/reset-password/
Authentication: None required (uses reset token from verification step)
Query Parameters
Token received from verify-reset-code endpoint
Request Body
New password for the account
Response
Success message
Updated user information