sahat / hackathon-starter

A boilerplate for Node.js web applications
MIT License
34.8k stars 8.16k forks source link

Feature: Log out everywhere #1239

Open YasharF opened 1 year ago

YasharF commented 1 year ago

The user presses a button in the account page to log them out everywhere. The app will need to destroy/delete all of the user's sessions.

YasharF commented 1 year ago

Potential implementation routes:

  1. Have passportJS, express session manager, etc incorporate the function.
  2. Add the related session scrubbing in hackathon starter. We may need to do this if passport or express session manger don't pick it up. We can use something like https://github.com/jdesboeufs/connect-mongo/issues/201#issuecomment-234886842 to start.
vimark1 commented 1 year ago

Hey @YasharF, I've implemented this in https://github.com/sahat/hackathon-starter/pull/1250

nishitiwari22 commented 11 months ago

Is this issue open? I am looking to contribute to it but I would appreciate it if I could get some insights.