spark-oauth-sample
Version:
This is a Spark OAuth Sample. It contains a) web interface of requesting token, b) a token management center.
10 lines • 344 B
JavaScript
module.exports = function (req, writeLog, location) {
var theSessionID = req.sessionID;
req.session.destroy(function (err) {
if (err) {
writeLog(theSessionID, 'fatal', 'In ' + location + '. Failed to destroy session: ' + err);
} else {
writeLog(theSessionID, 'fatal', 'In ' + location + '. Session has been destroyed.');
}
});
};