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

NameTypeRequiredDescription
refresh_tokenstringoptionalRefresh 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.txt

Response

Successful
FieldTypeDescription
messagestringConfirmation message.
json
{
  "message": "Logged out"
}