FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    How to implement magic link login across devices

    Scheduled Pinned Locked Moved
    General Discussion
    2
    2
    3
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      njanaskie
      last edited by

      I want to implement a passwordless flow using magic links and email.
      https://fusionauth.io/docs/apis/passwordless

      If a user initiates the email on device A but clicks the link on device B, is it possible to authenticate the user on both devices using the Passwordless API? I could implement polling or a websocket connection so that device A knows when the magic link has been clicked and can call the passwordless login. But as far as I know, the code is one time use so both device A and device B cannot call the passswordless login using the same code. If device B logs in with the code then device A cannot reuse the code, and vice versa.

      Are there known implementations of this flow? Is it wise to log in on one device then share the resulting access token to the other device (via websockets)? Any advice is appreciated, thanks!

      mark.robustelliM 1 Reply Last reply Reply Quote 0
      • mark.robustelliM
        mark.robustelli @njanaskie
        last edited by

        @njanaskie You are correct in that magic links are designed to be a one time use. I do not know of any work around for your situation.

        It will be interesting to see if others chime in.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post