Skip to content

Commit

Permalink
Handle logout without session manager.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhanson committed May 18, 2022
1 parent fa70e2f commit 88c1f1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/http/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ req.logOut = function(done) {
if (typeof done != 'function') { throw new Error('req#logout requires a callback function'); }

this._sessionManager.logOut(this, done);
} else {
done && done();
}
};

Expand Down

0 comments on commit 88c1f1b

Please sign in to comment.