Cherple
Cherple

Reputation: 791

req.logout, what parameters must I pass in request

My server is running on sailsjs.. it has a logout function as follows:

logout: function(few, res) {
  req.logout();
  res.cookie("jwttoken","0");
  res.json({"error":""});
}

I am writing a QT program which requires me to authenticate user.. I managed to authenticate using login by passing username and password into the body of the request.. what exactly do I need to pass to request for the logout to be successful?

Upvotes: 1

Views: 225

Answers (1)

Cherple
Cherple

Reputation: 791

My mistake. Carelessness on my part. Passing the username in the request body worked.

Upvotes: 1

Related Questions