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:
- A booking or ordering app can show services, prices and availability to anyone, and ask for an account when the user confirms a booking or checks out.
- A loyalty app needs an account early, because the account is the whole point, though it can still explain the rewards first.
- A client portal or internal staff app needs login from the start, since every screen shows private data.
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:
- Cost per login. Every code is a paid message through an SMS provider. Prices vary a lot by destination country, so check the rates for the countries your users are in before choosing this as your only method.
- Delivery reliability. Some carriers deliver codes slowly or filter them. Test with real numbers on the networks your customers use, not just your own phone.
- Abuse. Attackers can trigger thousands of codes to numbers they do not own to run up your bill. Rate limits per number, per device and per IP address, plus limits on which countries can receive codes, are not optional.
- Number changes. People change numbers. Users need a way to update theirs, and support needs a process for someone who lost the old one.
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.
Email with a code or a link
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:
- The Apple rule. If an iOS app offers sign-in through a third-party or social account, Apple requires an equivalent option that meets its privacy requirements, and in practice that usually means adding Sign in with Apple. Plan for both from the start rather than finding out at review time. I cover other review requirements in publishing your app on the App Store and Google Play.
- Hidden emails. Sign in with Apple lets users hide their real address behind a private relay address. Your emails still reach them, but you cannot use that address to match them with an existing customer record. If matching matters, ask for a phone number later in the flow.
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:
- Consumer booking, ordering or delivery app: phone code as the main method, possibly with Google and Apple sign-in alongside. Browse without an account, sign in at checkout.
- Loyalty or membership app: phone number, because staff at the counter look customers up by it.
- B2B ordering app or client portal: email and password or email codes, with accounts created or approved by the business rather than open sign-up.
- Internal staff app: accounts created by an admin, email or employee ID with a password, and quick re-entry with the phone's biometrics. If the company already uses Microsoft or Google accounts for staff, signing in through those can remove a separate password altogether.
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 app is built in React Native for iOS and Android, using the platforms' own sign-in sheets for Google and Apple and the phone's autofill for SMS and email codes, so a code can often be filled in with one tap.
- The backend, in .NET Core or a Next.js API depending on the project, owns all identity logic: verifying codes, validating Google and Apple tokens on the server, hashing passwords, rate limiting, and logging sign-in events. The app never decides on its own that a user is logged in.
- Sessions use short-lived access tokens with longer-lived refresh tokens, stored in the phone's secure storage (the iOS Keychain and the Android Keystore), not in plain app storage. A lost phone can be signed out from the admin side.
- Data lives in Postgres: users, linked sign-in methods, devices, sessions and an audit trail.
- Monitoring watches code delivery failures and unusual spikes in code requests, which are the first sign of SMS abuse.
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
- Bilingual screens. Codes, error messages and emails need Arabic and English versions, and phone number fields need to handle country codes and right-to-left layouts properly.
- Country selection. Default the phone field to your main market but let users choose another country code, since many customers have numbers from more than one country.
- Review access. Store reviewers need a working demo account. With phone-only login, that means a test number or a review code path that is safe to leave in production.
- Support tools. Staff should be able to find an account and help a user who lost access, without ever seeing a password.
What to decide before talking to a developer
Answering these will make a quote much more accurate:
- Who are your users: customers, business clients, staff, or several of these?
- At what point does a user really need an account?
- Do you identify customers by phone number, email or both today?
- Which countries are your users in, and are any outside your main market?
- Should anyone be able to sign up, or do you approve or create accounts?
- Do staff already use company Google or Microsoft accounts?
- 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.