| Endpoint: | /auth/login |
|---|---|
| Method: | POST |
| Description: | Get a fresh access token and a refresh token |
| Field | Type | Required |
|---|---|---|
| username | string | Yes |
| password | string | Yes |
| Field | Type |
|---|---|
| message | string |
| message_type | string |
| result |
Object
- user_id: string
- access_token: string
- access_token_expiration: string
- refresh_token: string
- refresh_token_expiration: string
|
| Endpoint: | /auth/refresh |
|---|---|
| Method: | GET |
| Request header: | Authorization: Bearer <refresh_token> |
| Description: | Get a new, not fresh, access token |
| Field | Type |
|---|---|
| message | string |
| message_type | string |
| result |
Object
- access_token: string
- access_token_expiration: string
|
| Endpoint: | /auth/logout |
|---|---|
| Method: | GET |
| Request header: | Authorization: Bearer <access_token> |
| Description: | Revoke an access token |
| Field | Type |
|---|---|
| message | string |
| message_type | string |