Authenticates a user and sets access/refresh token cookies.
| mode | string Value: "json" Optional. Use |
| username required | string <email> |
| password required | string non-empty |
{- "username": "user@example.com",
- "password": "YourP@ssword123"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "username": "user@example.com"
}Invalidates refresh token and clears auth cookies.
| X-Refresh-Token required | string Refresh token (JWT). Provide the refresh token returned by /logout. |
{- "message": "Logged out successfully"
}