This endpoint is used to log out a user. This will invalidate the JWT token.
None
None
- 'cookie': 'token=...' (Must be valid)
{
"success": true,
"message": "Logout successful"
}Example:
| Code | Description |
|---|---|
| 200 | Success |
| 401 | Unauthorized. |
| 500 | Internal Server Error. |
token(optional): cookie will be set to expire immediately.