Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 428 Bytes

logout.md

File metadata and controls

33 lines (21 loc) · 428 Bytes

Logout user

Logs out user given valid JWT token.

URL : /logout

Method : POST

Header :

"Content-type": "application/json"
"Authorization": "Bearer [token]"

Success Reponse

Code : 200 OK

Error Response

Condition : If token is invalid.

Code : 401 Unauthorized

Body :

{
    "code": "Unauthorized",
    "message": "Token expired. Please log back in."
}