Logout User
Delete refresh token seller from cookies and logout from oauth
Endpoint
Base URL
http://localhost:8080
Method and Endpoint
DELETE /api/users/current/logout
Headers
Authorization: Bearer access_token
Responses
You will get responses like this:
200 (success)
Response Body
{
"message": "Ok"
}
401 (unauthorized)
Response Body
{
"error": "Invalid authorization header"
}
401 (unauthorized - expire token)
Response Body
{
"error": "token is expired: token is expired by 2m19s"
}
500 (server error)
Response Body
{
"error": "Internal server error"
}