Home / Insights / Web and SaaS Development

Web and SaaS Development

Passkeys and Passwordless Login: How to Implement Them in Web and Mobile Apps

Passkeys remove the password from sign-in and make phishing far harder, but the work is in rollout, recovery and fallbacks rather than in the cryptography. This guide shows product and engineering leads how to add passkeys to an existing web and mobile product without locking users out.

TopicsWeb and SaaS DevelopmentMobile App Development

Key takeaways

  • A passkey is a discoverable WebAuthn credential: the device keeps a private key, your server stores only a public key, and the browser or operating system binds it to your domain, which is what makes it phishing-resistant.
  • Most products should add passkeys alongside existing sign-in first, using autofill-style prompts and offers after a successful login, rather than forcing a big-bang switch.
  • Account recovery is the real security boundary. If recovery falls back to an SMS code or an email link, that path sets your effective security level.
  • Web, iOS and Android each need platform configuration (relying party ID, associated domains, Digital Asset Links) so one passkey works across your website and apps.
  • Plan for the server side: credential storage per user, multiple passkeys per account, a management screen, and tests across browsers, password managers and devices.

Passwords remain the weakest part of most applications. They are reused, phished, stuffed into login forms from breach lists and reset through support tickets that cost money. One-time codes by SMS or authenticator app help, but users can still be tricked into typing them into a fake site. Passkeys address that problem at the root: there is no shared secret for a user to reveal and nothing useful for an attacker to steal from your database.

By early 2026, passkeys are supported across the major platforms. Apple syncs them through iCloud Keychain, Google syncs them through Google Password Manager, and third-party password managers can store them too. The question for most product teams is no longer whether passkeys work, but how to introduce them into an existing product with real users, real support processes and a mix of web and mobile clients.

This article is written for CTOs, product owners and engineering leads planning that work. It covers how passkeys function, the rollout options, the platform setup for web, iOS and Android, account recovery, testing and the risks we see most often.

How passkeys work and why they resist phishing

Passkeys are built on the W3C Web Authentication standard (WebAuthn) and FIDO protocols. According to MDN’s Web Authentication API reference, WebAuthn uses public-key cryptography: during registration the authenticator creates a key pair, the relying party (your server) stores the public key, and during sign-in the authenticator signs a random challenge issued by the server.

The key ideas in plain language

  • Relying party ID. Each credential is scoped to a domain, such as example.com. The browser will only use it on that domain, so a look-alike phishing site cannot request it.
  • Challenge and signature. Your server issues a random challenge (MDN specifies at least 16 bytes). The device signs it after the user unlocks with a fingerprint, face or PIN. No secret crosses the network.
  • Discoverable credentials. MDN notes that passkeys must always be discoverable: the device stores the private key with the username and relying party ID, so the browser can offer the account without the user typing a username.
  • Public keys only on the server. Google’s passkeys developer overview points out that the site stores only the public key, which is useless to an attacker on its own, reducing the impact of a breach.

Synced versus device-bound passkeys

Most consumer passkeys today are synced. Apple’s passkeys developer page describes end-to-end encrypted sync through iCloud Keychain, and Google syncs passkeys between Android devices and Chrome. Hardware security keys and some enterprise authenticators keep the key on one device. The difference matters for assurance levels: NIST’s SP 800-63B-4 Digital Identity Guidelines allow syncable authenticators at AAL1 and AAL2 but state that they shall not be used at AAL3, because their keys are exportable.

For most business and consumer applications, synced passkeys are the right default. If you build for government, healthcare administration or privileged admin access, check which assurance level applies before deciding.

Rollout options: add, upgrade or go passwordless

The biggest decision is not technical. It is how far and how fast to move users away from passwords. The table compares four common strategies.

StrategyWhat users seeBenefitsTrade-offs
Passkey as optional extraA ‘create a passkey’ option in account settingsLowest risk, quick to shipLow adoption; passwords and their risks remain for most users
Offer after successful loginA prompt to save a passkey after a password sign-in, plus passkeys in the login autofillGood adoption with little friction; no change to account creationPassword remains as a fallback and attack path
Passkey-first sign-upNew accounts are created with a passkey; password optional or absentNew users never have a password to phishNeeds solid recovery and support for users on unsupported or shared devices
Passwordless onlyNo passwords; passkeys plus a recovery methodStrongest phishing resistance and no password resetsRecovery becomes critical; higher support load during transition

What we usually recommend

For an existing product with an established user base, start with the second strategy. Add passkeys to the login form through autofill, offer to create one after a successful password sign-in, and give users a settings screen to manage them. Measure adoption and support tickets for a quarter, then decide whether to make passkeys the default for new accounts. Apple’s guidance supports this approach: it recommends keeping your existing sign-in flow, because passkeys work alongside passwords through AutoFill.

Where to go further faster

  • Internal tools and B2B admin consoles, where you control devices and can require phishing-resistant sign-in.
  • Products with high account-takeover costs, such as financial dashboards or marketplaces with stored payouts.
  • New products without a legacy password base. If you are still choosing an authentication foundation, our comparison of Firebase, Supabase or a custom back end covers the identity options each provides.

Implementing passkeys on the web

On the web, passkeys use two browser calls: navigator.credentials.create() to register and navigator.credentials.get() to sign in. Both require HTTPS. The server does the important work.

Registration flow

  1. The server generates a random challenge and returns registration options: relying party ID and name, a stable user handle (not an email address), and accepted algorithms.
  2. The browser calls create() with residentKey set so the credential is discoverable. The user approves with biometrics or a PIN.
  3. The browser returns a public key credential. The server verifies the challenge, the origin and the relying party ID, then stores the credential ID, public key, signature counter and metadata against the user.

Sign-in flow with autofill

MDN describes conditional mediation, which lets passkeys appear in the username field’s autofill alongside saved passwords. You add autocomplete='username webauthn' to the field, check support with PublicKeyCredential.getClientCapabilities(), and call get() with mediation: 'conditional'. This avoids a separate ‘sign in with passkey’ screen that many users would ignore.

Upgrading existing users quietly

MDN also documents conditional create: after a user signs in with a password saved in their credential manager, the site can request a passkey with mediation: 'conditional', and the browser may create one without an extra prompt. If the conditions are not met, the call rejects and the site should ignore the error. This is a low-friction way to raise adoption.

Keeping credentials in sync

When a user deletes a passkey in your settings screen or renames their account, their password manager does not know. MDN describes signal methods such as signalUnknownCredential() after a failed login and signalAllAcceptedCredentials() after a successful one, which let you tell the credential provider which passkeys are still valid. Do not call the latter for unauthenticated users, as it reveals the user’s credential IDs.

Server-side rules worth enforcing

  • Use a maintained WebAuthn server library rather than writing verification yourself.
  • Allow several passkeys per account and show where each was created.
  • Do not build allowlists of authenticator models; MDN advises relying parties against it.
  • Rate-limit and log registration and sign-in attempts like any other authentication endpoint.

Implementing passkeys in iOS and Android apps

The goal on mobile is that a passkey created on your website also works in your app, and the reverse. That requires linking the app to your domain on each platform.

iOS

Apple’s passkeys page points developers to the Authentication Services framework for apps and websites. Apps declare an associated domain for the web credentials service, and the website publishes a matching site-association file, so the operating system knows the app and domain belong together. Apple also lists newer APIs introduced in 2025, including an account creation API, automatic passkey upgrades and passkey import and export between password managers, which are worth evaluating once your minimum iOS version supports them.

Android

Google’s Credential Manager documentation describes a single Jetpack API that handles passkeys, passwords, federated sign-in such as Sign in with Google, and digital credentials, presented in one bottom sheet. Google positions it as the replacement for older APIs such as Smart Lock for Passwords and One Tap. Linking the app to your website is done through Digital Asset Links, covered in the Credential Manager prerequisites.

Cross-platform frameworks

If your app is built in Flutter or React Native, you will use plugins that wrap Authentication Services and Credential Manager. Check that the plugin is actively maintained, supports discoverable credentials and autofill-style prompts, and exposes errors clearly. Weak plugins are a common reason passkey projects stall on mobile.

Platform comparison

PlatformMain APIDomain linkingSync
WebWebAuthn (navigator.credentials)Relying party ID matches the site’s domainVia the user’s browser or password manager
iOS and macOSAuthentication ServicesAssociated domains and site-association fileiCloud Keychain or third-party providers
AndroidCredential Manager (Jetpack)Digital Asset LinksGoogle Password Manager or compatible providers

Whatever the client, keep one relying party ID and one credential store on the server, so a user’s passkeys appear consistently on every platform. Our guide to planning the backend behind a mobile app covers how to structure shared identity services.

Account recovery and fallbacks: the real security boundary

An attacker does not need to defeat a passkey if they can reset the account instead. Your recovery process therefore sets the effective security of the whole system.

Recovery options compared

Recovery methodSecurityUser effortNotes
Second passkey on another deviceHighLow once set upEncourage users to register two; synced passkeys often cover this automatically
Email magic linkMediumLowOnly as strong as the user’s email account
SMS one-time codeLowerLowVulnerable to SIM swap and phishing; use with care
Recovery codesHigh if stored safelyMediumUsers lose them; best for admin and business accounts
Assisted recovery with identity checksHigh if well designedHighNeeded for high-value accounts; costs support time

Design rules for recovery

  • Match recovery strength to account value. A consumer content app and a payroll admin console need different processes.
  • After any recovery, notify the user on all known channels and prompt them to create a new passkey.
  • Apply a short cooling-off period or extra checks before sensitive actions after recovery, such as changing payout details.
  • Log recovery events and review them; a spike can indicate an attack.

NIST SP 800-63B-4 requires verifiers at AAL2 to offer at least one phishing-resistant authentication option. Even if you are not bound by NIST, it is a sensible benchmark: passkeys give you that option, and recovery should not quietly undo it.

Testing and a step-by-step rollout plan

Passkeys depend on combinations of operating system, browser and password manager that you do not control. Testing has to reflect that.

What to test

  • Registration and sign-in on current iOS, Android, Windows and macOS, in the main browsers your analytics show.
  • Cross-device sign-in, where a phone approves a sign-in on a nearby laptop, which Google’s overview describes as working without syncing.
  • Third-party password managers as well as the platform defaults.
  • Users with no passkey support, shared devices or managed corporate devices.
  • Error states: cancelled prompts, a deleted passkey still offered by the device, and a lost device.
  • Accessibility: the flow must be usable with screen readers and without biometrics.

Rollout plan

  1. Decide scope and assurance. Agree which strategy from the table above you are adopting and which accounts, if any, need stronger rules.
  2. Build the server foundation. Credential storage, registration and verification endpoints, audit logging and a credential management screen.
  3. Ship on the web first. Add autofill sign-in and the post-login offer, and enable it for staff and a small user group.
  4. Link the mobile apps. Configure associated domains and Digital Asset Links, then release app versions that support passkeys.
  5. Update support processes. Write help articles, train support staff on recovery and add passkey events to your monitoring.
  6. Expand and measure. Track the share of sign-ins using passkeys, sign-in failure rates, recovery requests and password reset volumes.
  7. Review defaults. After a stable period, decide whether to make passkeys the default for new accounts.

An illustrative example

For example, a B2B SaaS company with a web app and companion mobile apps might start with administrators, who have the most powerful accounts. It would require a passkey for admin roles, keep passwords for other users with a post-login passkey offer, and use recovery codes plus assisted recovery for admins. After a quarter of data, it could extend passkey-first sign-up to all new customers. Our guide to planning a SaaS product around tenancy, billing and operations covers how such role decisions fit wider SaaS design.

Risks, costs and an implementation checklist

Risks we see most often

  • Wrong relying party ID. Choosing a subdomain when users sign in across several subdomains, or changing domains later, can strand credentials. Decide it once and record the decision.
  • Weak recovery. Passkeys with SMS recovery deliver less protection than teams expect.
  • Hidden passkey option. A separate button that few users find leads to low adoption. Autofill and post-login offers work better.
  • Unmaintained mobile plugins in cross-platform apps.
  • Orphaned credentials that users see in their password manager but your server no longer accepts, causing confusing failures.

Where the effort goes

The browser and platform calls are a small part of the work. Most effort goes into server verification and storage, account settings screens, recovery design, mobile domain linking, cross-device testing and support documentation. Treat it as an identity project, not a front-end feature. If you need help scoping it, our web development team builds custom web applications, customer portals and SaaS platforms, including their authentication flows, and can review an existing sign-in system before changes begin.

Implementation checklist

  • Relying party ID chosen and documented.
  • Server uses a maintained WebAuthn library and verifies challenge, origin and relying party ID.
  • Users can hold several passkeys and manage them in settings.
  • Login field supports autofill with username webauthn.
  • Post-login passkey offer or conditional create in place.
  • iOS associated domains and Android Digital Asset Links configured and tested.
  • Recovery methods match account value; recovery events trigger notifications.
  • Test matrix covers operating systems, browsers, password managers and no-support cases.
  • Support staff trained and help content published.
  • Metrics in place for adoption, failure rates and recovery volume.

Frequently asked questions

Do we have to remove passwords to use passkeys?

No. Apple and Google both describe passkeys working alongside existing sign-in methods through autofill. Most established products add passkeys first, measure adoption and support load, and only later consider removing passwords for some or all users.

What happens if a user loses their phone?

If the passkey was synced through iCloud Keychain, Google Password Manager or another provider, it is available on the user’s other devices once they sign in to that provider. If not, they use your recovery process, which is why recovery design matters as much as the passkey itself.

Will one passkey work on our website and our mobile apps?

Yes, if you use one relying party ID and link your apps to your domain: associated domains on Apple platforms and Digital Asset Links on Android. Without that configuration, users may need separate passkeys for web and app.

Are passkeys enough for regulated or high-assurance systems?

It depends on the assurance level you must meet. NIST SP 800-63B-4 allows syncable authenticators at AAL1 and AAL2 but not AAL3, where a non-exportable key is required. High-assurance systems may need device-bound authenticators such as hardware security keys.

How long does it take to add passkeys to an existing product?

It depends on your identity architecture, number of client platforms and recovery requirements. Scope it by listing the server, web, iOS, Android, recovery, testing and support tasks separately; a review of your current sign-in system is the fastest way to get a reliable estimate.

Sources and methodology

Guidance reflects PoliteTech delivery experience. The external references below informed specific points in this article.

  1. MDN Web Docs: Web Authentication API — accessed 9 November 2026. Registration and authentication flows, discoverable credentials, conditional mediation and conditional create, signal methods and security considerations.
  2. Google for Developers: Passkeys — accessed 9 November 2026. How passkeys work, sync through Google Password Manager, cross-device sign-in, phishing resistance and server-side storage of public keys only.
  3. Apple Developer: Passkeys — accessed 9 November 2026. iCloud Keychain sync, Authentication Services, AutoFill alongside passwords, and newer APIs such as automatic passkey upgrades and import and export.
  4. Android Developers: Credential Manager — accessed 9 November 2026. Unified Android API for passkeys, passwords, federated sign-in and digital credentials, replacing older sign-in APIs.
  5. NIST SP 800-63B-4: Digital Identity Guidelines, Authentication and Authenticator Management — accessed 9 November 2026. Syncable authenticators permitted at AAL1 and AAL2 but not AAL3, and the requirement to offer a phishing-resistant option at AAL2.

Planning to add passkeys without locking users out?

We can review your current sign-in and recovery flows across web and mobile, and give you a rollout plan with clear scope, risks and testing.