CallDocumentation Index
Fetch the complete documentation index at: https://docs.drssed.app/llms.txt
Use this file to discover all available pages before exploring further.
POST /auth/login to authenticate an existing user and receive a JWT access token and refresh token. You can identify the user by either their email address or their username — provide one or the other along with their password. The returned tokens work identically to those issued by POST /auth/guest.
Endpoint
| Field | Value |
|---|---|
| Method | POST |
| Path | /auth/login |
| Auth required | No |
| Rate limit | 5 per minute |
Request body
Provide eitheremail or username together with password. You do not need to supply both email and username.
The user’s email address. Required if
username is not provided.The user’s username. Required if
email is not provided.The user’s password.
Response fields
Status: 200 OKJWT access token. Include this in the
Authorization: Bearer <token> header on subsequent requests.Number of seconds until the access token expires.
Token used to obtain a new access token when the current one expires. See POST /auth/refresh.
Example
cURL
Response