Do a DELETE-type http request to the URL https://salty-sierra-8863.herokuapp.com/api/sessions/, passing the auth-token for the user that is to be logged out. The controller checks, if that auth token is in the user table and deletes it. This results in the user who that auth token belonged to being 'logged out'.
@alvinkatojr
Any ideas, why this is not working?
This is how it should work in theory:
Do a DELETE-type http request to the URL https://salty-sierra-8863.herokuapp.com/api/sessions/, passing the auth-token for the user that is to be logged out. The controller checks, if that auth token is in the user table and deletes it. This results in the user who that auth token belonged to being 'logged out'.
This is the request to the API:
This is the response body:
{ "success": false, "info": "Didn't work! Tried to log out: uschtrinw@gmail.com", "data": {} }