Invalidate your REST API authentication token.
HTTP Method | URL | Requires Auth |
---|---|---|
POST | /api/v1/logout | yes |
curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
-H "X-User-Id: aobEdbYhXfu5hkeqG" \
-X POST http://localhost:3000/api/v1/logout
{
"status": "success",
"data": {
"message": "You've been logged out!"
}
}