API Reference: Auth
Endpoints
POST /api/auth/request-otpPOST /api/auth/verify-otpGET /api/auth/mePATCH /api/auth/mePOST /api/auth/me/avatarGET /api/auth/avatar/:filename
POST /api/auth/request-otp
Body:
{
"email": "user@example.com",
"lang": "pl"
}
Notes:
lang:ploren- rejects non-allowed domains:
domain_not_allowed - OTP rate limit exceeded:
too_many_requests
POST /api/auth/verify-otp
Body:
{
"email": "user@example.com",
"code": "12345678"
}
Returns JWT token + user payload.