mxstbr / passport-magic-login

Passwordless authentication with magic links for Passport.js.
MIT License
668 stars 45 forks source link

What happen, when i open the link on phone? #8

Open niklasgrewe opened 3 years ago

niklasgrewe commented 3 years ago

Hi @mxstbr thank you very much for this passport strategy to support magic links. I would like to use it in my webapp. But what would happen if the user opens the link on phone instead of desktop? Would the user still be logged in on the desktop because he sent the request from there?

merelinguist commented 3 years ago

The user would then be logged in on their phone, but not on their desktop. Syncing both, though possible, would be considerably harder.

SahilMahadwar commented 2 years ago

I am having the same issue were you able to solve it @niklasgrewe. I have a method in mind, but I'm not sure if it's the best one. i checked network logs of splitbee the site from wich this stratagy is extracted and they have multidevice support their webapp polls for the status of token is if authenticated