Skip to content

Deconectare

Revoca tokenul bearer activ din antetul de autorizare.

Endpoint

http
POST /api/v1/logout

Exemplu de cerere

sh
curl --location --request POST 'https://files.ro/api/v1/logout' \
--header 'Authorization: Bearer {token}'

Răspuns

json
{
  "type": "success",
  "message": "You were successfully logged out"
}
json
{
  "type": "error",
  "message": "You are not authorized"
}