Book a 30-min callBook a call

How to choose sign-in for your app: passwords, magic links, social login, passkeys or SSO

Passwords, magic links, one-time codes, social sign-in, passkeys and SSO compared by friction, security and effort, with MFA, sessions and account recovery.

A browser and a phone showing a sign-in screen, with lines to a key, an envelope, a fingerprint and an office building for company sign-in.
Written by
BYD Tech
Updated
Topic
Web apps
Reading time
11 min read

Questions people ask

What is the most secure way to sign in to an app?

Passkeys or hardware security keys, because they resist phishing: there is no password or code a fake site can capture. For apps that still use passwords, adding a second factor is the biggest single improvement.

Do I have to offer Sign in with Apple?

Only in some cases. Apple’s App Review Guideline 4.8 says an iOS app that uses a third-party or social login for the user’s primary account must also offer an equivalent login service with specific privacy features. Sign in with Apple meets them. Apps that use only their own account system, among other listed exceptions, do not need one.

Are magic links safe?

They can be, if the links are random, single use and expire quickly. The account is then as secure as the user’s email, and like any code a person can be tricked into handing over, they are not phishing resistant.

How long should passwords be?

NIST SP 800-63B asks for at least 15 characters when a password is the only factor and at least 8 when it is combined with another factor, and for support of at least 64. It also says not to force symbols or scheduled changes.

Should I build sign-in myself or use a managed service?

Most new products are better off with a managed service or a well-maintained library, because resets, MFA, passkeys and SSO are a lot of security-sensitive work. Check the pricing model, customization limits and how you would export your users before you commit.

Building something like this?