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
Two Votes on Product Hunt → 2,000+ Users in Three Weeks Anyway 😌 User Avatar 55 comments AI Is Destroying the Traditional Music Business and Here’s Why. User Avatar 34 comments Fixing my sleep using public humiliation and giving away a Kindle User Avatar 23 comments The best design directories to show off your work User Avatar 11 comments Retention > Hype: What Are We Really Chasing as Builders? User Avatar 9 comments A growth tool built for indie developers: Get influencer marketing done in 10 minutes and track the results. User Avatar 8 comments