Auth and identity · Comparison

Magic link vs OTP vs passkeys vs social login

Four ways to let people in without asking them to invent a password. They differ in how many steps they take, what they cost to run and how well they stand up to phishing.

4 options · 8 questions side by side · updated

CompareMagic linkOTPPasskeysSocial login
How it worksClick a link sent by emailType a short code from SMS, email or an appUnlock with a fingerprint, face or PINApprove on Google, Apple, GitHub or similar
Steps for the userSwitch to the inbox and clickWait for the code and type itOne tap or glanceA couple of clicks
Phishing resistanceMedium: links can be forwarded or interceptedLow: codes can be typed into fake sitesHigh: only works on the real domainMedium: as strong as the provider account
Running costOne email per sign-inFree by app or email; SMS costs per messageFreeFree
Setup effortEmail sender, tokens and expiryCode storage, expiry and rate limitsA WebAuthn library or a provider that supports itA developer app with each provider
On a new deviceWorks wherever the inbox is openWorks anywhere the code arrivesSynced passkey, or a QR scan with a phoneWorks after signing in to the provider
Depends onEmail arriving quicklyThe phone network or inboxA recent device or password managerEach provider's rules and uptime
Best forOccasional sign-ins and B2B toolsPhone-first apps and second factorsReturning users on recent devicesConsumer apps that want quick sign-up

How to choose between Magic link, OTP, Passkeys and Social login

  • Pick social login for quick sign-up in consumer apps, with one other method for people who do not use those accounts.
  • Pick passkeys when phishing resistance matters, and offer them after the first sign-in rather than as the only way in.
  • Pick magic links or email codes for occasional sign-ins, and SMS codes where the phone number is the main identity.

The options

More comparisons

Crafted in the dark. Shipped to the world.

Tell us what you are building. You get a private project space with a proposal and a line-by-line quote within a day.