passport icon indicating copy to clipboard operation
passport copied to clipboard

Is it possible to get all active sessions?

Open ZeHiro opened this issue 8 years ago • 2 comments

I know it is not an issue, but I couldn't find the information elsewhere.

on a current project using passport, it is possible to connect to the service on several browsers or computers. We woule like to implement the possibility for a user to delete other active sessions (the ones created on another browser using its own credentials (use case : the user connect to the service on everal browsers, and didn't disconnect from another browser/computer and want to delete this session for security reason). But we couldn find information in the doc on how to get all active sessions for this user and allow him to delete other sessions. I hope i am clear enough

ZeHiro avatar May 20 '16 22:05 ZeHiro

Seems like this is value-add that you'd need to create depending on your session store, along with an index... so when passport calls your deserialize user method (or in your callback method, when a session is authenticated, for OAuth scenarios), you would get into the business of maintaining the backing store.

jeffwilcox avatar Aug 19 '16 22:08 jeffwilcox

i want to see all the active sessions is it possible 🤔

mourad132 avatar Sep 19 '20 12:09 mourad132