Skip to content

Prevent multiple logins from multiple devices at the same time #192

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

Open
chriso0710 opened this issue Oct 14, 2020 · 4 comments
Open

Prevent multiple logins from multiple devices at the same time #192

chriso0710 opened this issue Oct 14, 2020 · 4 comments

Comments

@chriso0710
Copy link

Hi everyone,

I would like to prevent users from logging in from multiple devices at the same time.
Is there a chance to check that someone already is logged in from Device A when he tries to login from Device B? So that he gets a message and is unable to login on Device B. He would have to logout from Device A to be able to login from Device B.

Is that possible and how?

Thank you!
Christian

@LuigiClaudio
Copy link

Hey @chriso0710, have you got anyone sharing anything about this matter?

@chriso0710
Copy link
Author

Hey @LuigiClaudio,

we decided not to use gotrue-js. We developed our own auth provider to have full control over it's behaviour. The development was surprisingly easy. We found that other commercial auth providers were not able to offer the features we needed.
More details in the netlify forum
https://answers.netlify.com/t/identity-role-based-access-control-across-subdomains/29957/4

Our own provider is able to limit logins. So when someone in logged in already on browser A he/she cannot login from browser B. We are thinking about implementing other features like browser fingerprinting or browser heartbeats.

I'm aware that this probably does not help you much with gotrue-js...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@LuigiClaudio @chriso0710 and others