Logout
Revoke the current refresh token and clear its cookie. No authentication required — the refresh token is read from the cookie or request body.
POSThttps://api.marinahealth.eu/auth/logout
Request Body
Body Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| refresh_token | string | optional | Refresh token to revoke. If omitted, the token is read from the HttpOnly cookie. |
Example Request
cURL
curl -X POST https://api.marinahealth.eu/auth/logout \
-b cookies.txtResponse
Successful
| Field | Type | Description |
|---|---|---|
| message | string | Confirmation message. |
json
{
"message": "Logged out"
}