What's a magic link?
A magic link is a secure, one-time-use link that lets users log in to an app without a password. After entering their email, the system sends a time-sensitive link. Clicking it automatically authenticates the user, providing a simple and secure login experience while eliminating the need for passwords.
Can you use magic links in a PWA on Android?
✅ Yes! On Android, a domain shares the same storage mechanisms between the browser and an installed PWA. This means that opening the magic link from your email will automatically log you into both the installed PWA and the browser seamlessly.
Do macOS/Windows PWAs support magic links?
✅ Yes! Although desktop operating systems don't support deep linking as seamlessly as Android, magic links still function perfectly.
Do magic links work in iOS PWAs?
❌ Unfortunately... no. iOS doesn't support deep linking for PWAs so the magic link will only log you into Safari. Since Safari and an installed PWA don’t share storage, cookies, or cache, you’ll remain logged in only on Safari, not in the PWA.
Possible alternative to magic links in PWAs
Instead of magic links, you could implement one-time password (OTP) authentication. This is the solution we use at Progressier. Rather than sending a clickable link, you send a code for the user to enter directly within the PWA. While it’s not as seamless as a magic link, it solves the deep linking limitations on iOS.