Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add signoutEverywhere method #2993

Closed
s-kris opened this issue Oct 20, 2021 · 4 comments
Closed

Add signoutEverywhere method #2993

s-kris opened this issue Oct 20, 2021 · 4 comments
Labels
enhancement New feature or request stale Did not receive any activity for 60 days

Comments

@s-kris
Copy link

s-kris commented Oct 20, 2021

Description 📓

It'd be nice to have a method to clear all sessions of a user.

use case:
A user logged in from a machine and forgot to logout. If we have signoutEveryWhere method, this can be implemented without the developer manually writing a method to delete the sessions for that user.

How to reproduce ☕️

NA

Contributing 🙌🏽

No, I am afraid I cannot help regarding this

@s-kris s-kris added the enhancement New feature or request label Oct 20, 2021
@balazsorban44
Copy link
Member

possible duplicate of #836?

Could you elaborate? You can set a lowsession lifetime, and if the user doesn't interact with the site, the session is automatically destroyed.

@s-kris
Copy link
Author

s-kris commented Oct 21, 2021

Yeah, it might fall under the same issue but sorry I don't have any knowledge on OIDC.

One more use case:
(this actually happened which led me to implement the signoutEveryWhere method for my product, lol)

person_1 logged in with email_1. (magic link)
person_1 asked person_2 to login with email_1. When the signIn link came to email_1, person_1 sent it to person_2.
person_2 logged in and started using the product. Later, person_1 didn't want person_2 to have access anymore.
So, I had to implement the signoutEveryWhere method which cleared all the sessions.

I can't keep a low session lifetime because users will have to frequently re-login.

p.s: there is a team module in my product but it's just users being users :D

@stale
Copy link

stale bot commented Dec 20, 2021

Hi there! It looks like this issue hasn't had any activity for a while. It will be closed if no further activity occurs. If you think your issue is still relevant, feel free to comment on it to keep it open. (Read more at #912) Thanks!

@stale stale bot added the stale Did not receive any activity for 60 days label Dec 20, 2021
@stale
Copy link

stale bot commented Dec 28, 2021

Hi there! It looks like this issue hasn't had any activity for a while. To keep things tidy, I am going to close this issue for now. If you think your issue is still relevant, just leave a comment and I will reopen it. (Read more at #912) Thanks!

@stale stale bot closed this as completed Dec 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale Did not receive any activity for 60 days
Projects
None yet
Development

No branches or pull requests

2 participants