Null StudioNullStudio

Blog · November 27, 2026 · 9 min read

User Authentication for a New App: Passkeys, Social Login and What to Build vs Buy

By the Null Studio team

TL;DR: Login is the first thing every user touches and the part of a new app most likely to cause a security incident or a flood of support tickets. For almost every product, the right call is to use an established authentication service rather than write your own, and to spend your effort on the decisions only you can make: which sign-in methods your users actually want, how account recovery works, how one person is recognized across web and mobile, and how accounts relate to teams if you sell to businesses. For a new app in 2026 that usually means passkeys and email-based sign-in as the defaults, social login where your audience expects it, multi-factor authentication for anything that touches money or sensitive data, and an account model that leaves room for enterprise single sign-on later.

Founders often treat authentication as a solved checkbox: add a login screen, move on. Then the support inbox fills with "I can't get in," a reviewer rejects the app for a missing sign-in option, or a business customer asks for SSO and the account model cannot support it. This guide is for founders and product owners planning a web or mobile app who want to know what to decide, what to buy, and what to ask whoever builds it.

Authentication, authorization and identity are three different jobs

It helps to separate the words before making decisions.

Most auth services handle the first job well, help with the second, and leave the third mostly to you. Problems usually show up in the gaps between them, so plan all three together.

Build or buy: buy, almost always

Writing your own password storage, session handling, token refresh, email verification, rate limiting and recovery flows is a lot of security-critical code that adds nothing your users will notice when it works. Established authentication services, whether a managed provider or a well-maintained open-source library you host, have already dealt with the edge cases and keep up with new standards like passkeys.

What you still own, and should not outsource to a default setting:

The cases for building more of it yourself are narrow: strict data residency requirements a provider cannot meet, very unusual login flows such as shared devices or kiosks, or regulated environments where the security team insists. Even then, use vetted libraries for the cryptography and protocols.

Which sign-in methods to offer

Passkeys

Passkeys replace passwords with a key stored on the user's device or in their password manager, unlocked with a fingerprint, face or device PIN. They cannot be phished or reused across sites, and the operating systems now sync them across a user's devices. For a new app, passkeys are a strong default, and both Apple and Google promote them in their own sign-in prompts.

The practical caveats: some users do not understand them yet, shared and older devices can be awkward, and you still need a fallback for someone who has lost every device. Offer passkeys first, explain them in one plain sentence, and keep a second method available.

Email codes and magic links

Sending a one-time code or link to an email address removes passwords entirely and works for almost everyone. The trade-off is friction: the user has to switch to their inbox, and slow or filtered email becomes a login problem. Codes tend to work better than links on mobile, because links can open in the wrong browser or app. Whichever you use, your email delivery setup now matters as much as your login screen.

Social login

"Continue with Google" or "Continue with Apple" is fast and familiar, and for many consumer apps it is what users reach for first. Two things to know. First, if your iOS app offers certain third-party sign-in options, Apple's guidelines generally require you to offer Sign in with Apple as well, so check the current rules before launch; we cover review requirements in our guide to the app store release process. Second, Sign in with Apple lets users hide their real email address, so your account model must not assume the email is a stable, readable identifier.

Passwords

Passwords are still expected in some audiences, especially business users and older demographics. If you offer them, let the provider handle storage and breach checks, allow password managers to fill them, and do not force arbitrary complexity rules that push people toward sticky notes.

Phone number sign-in

SMS codes are common in some markets and for apps built around a phone number. They are weaker than the options above because numbers can be hijacked or recycled, and SMS costs money per message. Use them where your audience expects them, not as the default everywhere.

The right mix depends on who your users are. A consumer app like Lifemaxxing AI, where people sign up on a phone in a few seconds, leans toward passkeys and social login. A business tool like Fyuel, an accounting platform for the fuel trade, has different users, shared devices in offices and a stronger case for multi-factor authentication. Decide per product, not per template.

Multi-factor authentication

If your app handles money, health information, company data or anything an attacker could resell, offer a second factor and consider requiring it for admins. Authenticator apps and passkeys are stronger second factors than SMS. For financial products this is usually not optional; we go deeper in building financial software.

Ask for the second factor at sensible moments: at sign-in on a new device, and again before sensitive actions such as changing payout details or exporting data. Asking at every login drives people away; never asking leaves the riskiest actions exposed.

Account recovery is where real security lives

Attackers rarely break a strong login. They go after the recovery flow instead, because it is designed to let someone in without the usual credentials. Decide on purpose:

Recovery also drives a large share of support tickets in a new app. Clear wording on the "can't sign in" screen saves real time.

Sessions across web and mobile

Decide how long people stay signed in. Consumer mobile apps usually keep users signed in for a long time and rely on the device lock. Business web apps often use shorter sessions and let admins set timeouts. Either way, users should be able to see their active sessions and sign out of all of them, and you should be able to revoke a session from your side when something looks wrong.

If your app works offline, sessions need extra thought, since the app must keep working without checking in with the server; our guide to offline-first app development covers that. And if you are still deciding between platforms, web app vs mobile app first explains how that choice shapes login, among other things.

Identity: one person, many doors

Analytics, support and billing all break quietly when one person ends up with two accounts. This happens when someone signs up with Google on the web and with email on their phone, or when Sign in with Apple hides the address you were matching on.

Plan for:

Teams, organizations and the road to SSO

If you sell to businesses, users belong to organizations, and the questions multiply: who can invite whom, what happens when someone leaves, whether one person can belong to two companies, and who controls the sign-in method. Getting this structure right early is part of multi-tenant SaaS architecture.

Sooner or later, a larger customer will ask for single sign-on through their identity provider and automated user provisioning. You do not need to build that in version one. You do need an auth service that supports it and an account model that can tie an email domain to an organization, so SSO becomes a configuration task rather than a rewrite. We cover the full list larger buyers check in what makes a SaaS product enterprise-ready.

Mistakes we see most often

How we approach it

When we build a product from scratch, authentication is part of the first working slice, not a task left for the end. We pick an established provider that fits the platforms, budget and data requirements, set up the sign-in methods your audience actually uses, write the account and organization model in your own database, and make sure the accounts, keys and admin access are in your name at handover, as we describe in software ownership and handover. For products already in use, we add passkeys, multi-factor authentication, account linking or SSO to the existing codebase without forcing every user to start over.

Questions to ask whoever builds your app

The bottom line

Good authentication is invisible when it works and very expensive when it does not. Buy the security-critical machinery, then put your attention on the parts that are about your users: the sign-in methods they expect, a recovery flow that is as strong as the login, one identity across every device, and an account model that is ready for business customers before the first one asks.


Planning a new app or fixing login on an existing one? Book a demo and we'll walk through the right sign-in methods, recovery flow and account model for your users. See our product work: LectureNotes AI, Lifemaxxing AI and Fyuel, built and run with real users.

FAQ

Should we build our own authentication system?

Almost never. Password storage, sessions, token refresh, verification and recovery are security-critical code that established auth services already handle well. Use one, and spend your own effort on the account model, authorization, the sign-in experience and a plan for moving providers if you ever need to.

Are passkeys ready for a new app?

Yes, as a default alongside a fallback. Passkeys cannot be phished or reused, and Apple, Google and password managers now sync them across a user's devices. Some users still find them unfamiliar, so explain them in one sentence and keep email codes or another method available.

Do we need Sign in with Apple?

If your iOS app offers certain third-party sign-in options such as Google, Apple's guidelines generally require Sign in with Apple as well. Check the current rules before launch, and remember that users can hide their real email address, so do not use email as your stable identifier.

When do we need single sign-on?

When you start selling to larger businesses, whose IT teams want staff to log in through their own identity provider. You do not need it in version one, but choose an auth service that supports it and an account model that ties email domains to organizations, so adding it is configuration rather than a rebuild.

Want it built, not just explained?

We design, build and run these systems end-to-end — shipped in days, not months.

Book a demo →

Keep reading