POST /auth/logout

Invaliduje aktuální JWT token a refresh token.

Responses

  • 204

    Úspěšné odhlášení. Bez obsahu.

  • 401 application/json

    Chyba autentizace

    Hide response attributes Show response attributes object
    • code string
    • message string
  • 500 application/json

    Chyba serveru

    Hide response attributes Show response attributes object
    • code string
    • message string
POST /auth/logout
curl \
 --request POST 'https://api.mstonjek.cz/v1/auth/logout' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (401)
{
  "code": "UNAUTHORIZED",
  "message": "Token není platný"
}
Response examples (500)
{
  "code": "INTERNAL_SERVER_ERROR",
  "message": "Server momentálně nedostupný"
}