← All posts

Sign-up and login for your mobile app: phone, email, social or passkeys

Login is the first screen most users see and the first place many of them give up. Here is how to choose between phone codes, email, Google and Apple sign-in and passkeys, what the stores require, and how I build it.

Author
Elie Chaaban
Published
Reading time
8 min
Topics
Mobile Apps, Planning, Security, UX

When a business plans an app, login usually gets one line in the brief: "users can sign up and log in." It deserves more. The sign-up screen decides how much friction stands between a download and a first order or booking, and it shapes your costs, your support load and what store reviewers will check.

This post covers the main ways people sign in to an app, when each one fits, what the stores expect, and how I build the account system behind it.

First question: does the user need an account yet?

Before choosing a login method, decide when you ask for one. Many apps ask on the first screen out of habit and lose people who only wanted to look. Ask for an account at the moment it becomes useful to the user:

Apple's review guidelines also say apps should not force registration for features that do not need it, so letting people browse first helps at review time too.

The main options

Phone number with a one-time code

The user enters their mobile number, receives a short code by SMS, and types it in. No password to create or forget.

This suits consumer apps where customers already think of the business in terms of their phone number: delivery, cleaning, home services, restaurants, salons. In Lebanon and across the GCC, where so much customer contact already happens by phone and WhatsApp, a phone number is often the most natural identifier.

The trade-offs are real:

Codes can also be delivered through WhatsApp, which has a dedicated authentication message type on the WhatsApp Business Platform, with SMS kept as a fallback. I cover the setup side in WhatsApp notifications for your app or website.

Email and password

The most familiar option and the cheapest to run. It fits business tools, B2B apps and portals where people have a work email and expect a password. The weakness is passwords themselves: users reuse, forget and mistype them. If you choose it, the account system needs to do the unglamorous parts well: secure password hashing, email verification, a reset flow that works, protection against repeated guessing, and support for password managers and the phone's own autofill so people rarely type anything.

Instead of a password, the user enters their email and receives a one-time code or a sign-in link. This removes forgotten passwords, and email delivery is far cheaper than SMS.

Codes are usually easier than links in a mobile app. A link has to open the app rather than the browser, which depends on deep links being set up correctly, and fails when email is read on another device. A short code works everywhere.

Sign in with Google and Sign in with Apple

One tap, no new password, and an email address that the provider has already verified. For consumer apps this often gives the smoothest first sign-up, especially on Android where most users are already signed in to Google.

Two points to plan for:

Passkeys

Passkeys let the user sign in with the phone's face, fingerprint or screen lock, with no password and no code. They are supported on current iOS and Android versions and are much harder to phish than passwords or codes.

They are a strong option for apps people open often or that handle money, but for most business apps I would not make them the only method yet, since some users are on older devices or find the prompt unfamiliar. Offered after the first sign-in, they are easy to adopt.

Matching the method to the app

There is no single right answer, but most apps fall into a few patterns:

Start with one or two methods done well. Each extra method is another flow to design, test and support.

Linking accounts and avoiding duplicates

The moment you offer more than one method, you have to decide what happens when the same person uses two of them. A customer who signed up with their phone number and later taps "Sign in with Google" should not end up with two accounts, two order histories and two loyalty balances.

I handle this by treating the person as one account with several verified ways to sign in. A new method is linked to an existing account only when there is proof it is the same person, such as a matching verified email or a code sent to the existing number. Merging on an unverified match is how account takeovers happen.

Account deletion is required

Both stores now require that users who can create an account in your app can also delete it. Apple expects deletion to be possible from inside the app. Google Play also expects a web link where users can request deletion without reinstalling the app. Deletion has to actually remove or anonymise personal data while keeping records you must keep, such as invoices, so it belongs in the first version, not as a fix after a rejection.

How I build it

My usual setup for an app's account system looks like this:

The same backend can serve a website or portal, so one account works everywhere. The general security baseline behind all of this is in web app security basics.

Pro Clean+, the cleaning booking app I designed, built and run, is an example of the kind of consumer app where these choices matter: customers need to book quickly in English or Arabic, and the business needs to know who it is visiting.

Details that are easy to miss

What to decide before talking to a developer

Answering these will make a quote much more accurate:

  1. Who are your users: customers, business clients, staff, or several of these?
  2. At what point does a user really need an account?
  3. Do you identify customers by phone number, email or both today?
  4. Which countries are your users in, and are any outside your main market?
  5. Should anyone be able to sign up, or do you approve or create accounts?
  6. Do staff already use company Google or Microsoft accounts?
  7. Will there be a website or portal where the same users log in?

If you are planning an app and want the account system designed properly from the first version, that is part of my mobile app development work, from the sign-in screens to the backend and the store review. Send me a short description of your users and how they reach you today at hello@eliechaaban.com, or get in touch to book a call.

More from the blog

Let's work
together