Endpoint
Request body
The user’s email address
The user’s password
Response
JWT access token for authenticating API requests. Valid for a limited time.
Success response
refresh_token with the following properties:
- HttpOnly: true (not accessible via JavaScript)
- SameSite: Strict
- Path: /api/auth
- Max-Age: 30 days
- Secure: false (should be true in production)
Error responses
401 Unauthorized - Invalid credentialsExample request
-c cookies.txt flag saves the refresh token cookie for later use.
Status codes
| Code | Description |
|---|---|
| 200 | Login successful |
| 401 | Invalid credentials |
| 404 | User not found |