REST logout without logout_token I have a small app I'm working on and after I created a new build I'm unable to login or logout. This seems to happen because drupal thinks I'm logged in but my app doesn't have the user details in local storage. So I don't know the logout_token needed to logout from app.

Is there a way I can fix this?
Marius,

When you login using rest api, csrf and logout tokens are generated. use the logout_token generated to logout form your app. Make a post request to 

/user/logout?_format=json&amp;token={logout_token}


Sample code to logout from your app will be similar to 

 var xhr = new XMLHttpRequest();
 xhr.withCredentials = true;

 xhr.addEventListener("readystatechange", function () {
   if (this.readyState === 4) {
     console.log(this.responseText);
   }
 });

 xhr.open("POST", "http://example.com/user/logout?_format=json&amp;token=logout_token");
 xhr.setRequestHeader("content-type", "application/json");

 xhr.send(data);


Hope that helps.