Question about magic link auth. I can only get it ...
# help
s
Question about magic link auth. I can only get it to work on the same browser that made the request. Is there a way to remote authenticate? e.g I request the email in a desktop app but follow the log in link on my phone, and have the desktop app get the successful auth too?
n
Hello @stukennedy! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
b
A single magic link only works once so you can't use it to log in on two different devices. You'll need to request 2 separate links.
n
stukennedy (2022-05-14)
s
I don’t mean to use the link twice. Firebase allows you to authenticate on one device and resolve it on another. And the originating device gets logged in. This is useful because if you’re using magic link in say an electron app, you can click on the link in your email and it may open, say Firefox, and log you in. But the Electron app automatically resolves its auth and logs you in. Otherwise how else can you log into an app that is in a different browser instance to what your email launches?
b
You can request the login on a laptop and click the link on a phone. I’m almost positive I’ve done that. Let me verify if.
Yeah I just requested a magic link on my laptop then opened my email on my iPhone and clicked the link and opened it in my iPhone browser no problem.
You can also copy the link to the clipboard and paste it into any browser
s
Yes, but when resolving it on your iPhone it doesn’t authenticate the laptop auth; which Firebase does. This is important if I want to use magic links in Electron or a Webview in a native app, where the link won’t be resolved in the same place that I want to run the app.
b
You should probably post this on our GitHub discussions page so our auth team can respond directly to this.
Thanks!