1
3 Comments

Magic link email login - pro and con

I was favourable to magic link email for login. Until this morning when I needed to login to a service and unable to. While waiting, I thought about this more and here goes.

Pro:

  • For development side, we do not need to handle storing user id and password, so this reduces security footprint. 👍🏼
  • For development side, relatively easier to develop than our own user id and password.
  • For users, one less password to forget or manage with the password manager. 👍🏼

Con:

  • It is rare, but email service can go down. Like what happened to me and I was unable to retrieve the email for login link and I cannot do what I wanted to do.
  • It breaks the UX flow during user login, because the user must switch to the email app before continuing with the intent of using the service. Sometimes there is a (hopefully short) lag for the email to show up too.
  • While in email, users can get distracted with other email. Delaying the user from using the service.
  • I use multiple browsers. Clicking the URL in the email may default to a different browser than the one I use for logging in, although this is easy to solve by copy-pasting the URL manually. Still, this slows down the UX flow.

Alternatively, we can use third-party login like Google, Apple, Discord, etc, which comes with a different set of trade off. Subject for a different post.

on November 10, 2022
  1. 1

    Thanks! It's largely based on https://minimal-kit-react.vercel.app/login
    I changed the Language to TypeScript and routing to NextJS but it is pretty much the same. Check the code out here: https://github.com/minimal-ui-kit/material-kit-react

  2. 1

    How about having both options available? I use that for my website and I am hoping it gives users the freedom to choose what suites them best:

    https://www.laimuna.com/auth/login/

    Sorry it's Arabic, but the icons are the same

    1. 1

      Oh of course. There are some sites that use all methods: id+password, email link, and social login.

      Although I do not read Arabic, I like your login page. Nicely designed.

Trending on Indie Hackers
I shipped a productivity SaaS in 30 days as a solo dev — here's what AI actually changed (and what it didn't) User Avatar 258 comments Never hire an SEO Agency for your Saas Startup User Avatar 107 comments A simple way to keep AI automations from making bad decisions User Avatar 71 comments 85% of visitors leave our pricing page without buying. sharing our raw funnel data User Avatar 39 comments Are indie makers actually bad customers? User Avatar 39 comments We automated our business vetting with OpenClaw User Avatar 38 comments