DEV Community


Discussion on: Implementing Passwordless Authentication in Node.JS

steelvoltage profile image
Brian Barbour

How do you go about implementing that last part? Where clicking the magic link on one device logs you in on another?

darkwiiplayer profile image

Not without some degree of back-end persistence, which I assume is the main reason it's not how what the article does. You'd need to create some sort of short-lived state in the back-end that gets cleared by opening a link in the email. The login-window could then just do polling, or use some more sophisticated method for waiting for the server to grant it access.

Forem Open with the Forem app