# Why Passkey Implementation is 100x harder than you think

Read about the challenges, pitfalls and misconceptions we faced while developing our passkey-first authentication solution and passkey intelligence.

[Vincent Delitz](https://www.linkedin.com/in/vincent-delitz/)

Created: April 27, 2024

Updated: September 8, 2026

Table of Contents

### Enterprise Passkey Whitepaper

Practical guidance, rollout patterns and KPIs for passkey programs.

Practical guidance, rollout patterns and KPIs for passkey programs.

[Get Whitepaper](/content/passkeys/enterprise/index.html)

Share this article

* * *

**Buy vs. Build Guide.** Practical guidance, rollout patterns and KPIs for passkey programs.

[Get Free Guide](/content/blog/passkeys-buy-vs-build-guide/index.html)

_“Ah yes passkeys, pretty cool technology and great that there’s already wide support,_
_plus an open standard that they are built on. I’ll just grab one of the libraries for my_
_framework and that should do the job. I don’t think I need any help or service. I’m a_
_decent coder and have added auth packages dozens of times in the past.”_

This is a typical conversation I had over the past 24 months with many developers. And I
have to admit, that this was also my initial thought when I encountered passkeys for the
first time in May 2022: **It shouldn’t be too hard. It shouldn’t be too complicated.**
Hey, in the end, it’s just another way of doing (passwordless) authentication. And here I
am in mid-2024, still discovering new cases you need to take care of in real-life
applications. That’s the reality - which fascinates me.

With this blog post, I want to share with you the learnings on my way when working on a
**passkey-first** auth solution and **passkey intelligence** with Corbado. All the **hard**
**truths, the unknown unknowns** (factors that were not anticipated prior to my experience,
essentially things we did not know we did not know), and the **misconceptions** should be
uncovered, so that you know what to consider when implementing your own passkey-based
authentication.

Whether you're at the initial stages of adoption, considering enhancing your existing
systems with passkeys or starting a passkey-first authentication project, this guide will
help you avoid common pitfalls.

See how many people actually use passkeys.

[View Adoption Data](https://state-of-passkeys.io/)

[**TL;DR:\#**](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#tldr/index.html)

_“Can you add passkeys as new auth solution in our next sprint?”_ asks the product
manager, as he’s heard about passkeys as the new passwordless login method that all the
big players in the tech industry implement. **No more password resets. Higher conversion**
**rates. No more phishing attacks** (also a dream of every IT security manager). Everyone is
excited for this new way of authentication. Even the developer who has to implement it.
Even though he’s read some controversial posts on Hacker News about passkeys, he still
thinks it’s a cool concept and from the company’s perspective, it makes a ton of sense to
add it as an option (though, no one should be forced to use it, of course, so let the
users decide what they want!).

The developer starts his research on passkeys just as he would do for any other new
feature that the product team has requested. He opens Google and types in “webauthn
specification”, “ [passkey tutorial](/content/blog/passkey-tutorial-how-to-implement-passkeys/index.html)”,
“how to implement passkeys”, “passkeys in [react](/content/blog/react-passkeys/index.html)” and
“ [passkey libraries](/content/faq/recommended-libraries-tools-passkey-integration/index.html)”. This should
be a good start. Skim through the specification to get a rough understanding, scroll
through some tutorials and sample projects. Check if there are some libraries on GitHub
that can be used. In the end, it will probably all come down to some backend API endpoints
that need to be implemented, a quick frontend integration into the existing stack and then
just use the session management that is already in place.

However, **the more the developer researches the topics, the more things come to his**
**mind**: [how do passkeys work](/content/blog/passkeys-explained-clearly/index.html) on devices that are
older? What if the user cancels the flow or loses the device where the passkey is stored?
How can the new [passkey login](/content/blog/passkey-login-best-practices/index.html) be tested on different
devices, operating systems and browsers. He realizes that this might not be only a
1-sprint-task.

This is not an isolated story. Many developers that reached out to us and scratched below
the surface of passkeys faced similar challenges. **Implementing passkeys in a real-life**
**project is 100x harder than you might initially think** (trust us – we’ve gone through
it).

Our mission is to help developers implement passkeys. That’s why we created this blog
post. So, let’s take a look at the **15 most common misconceptions** when implementing
passkeys, so that you know what to take care of.

[**\#1 Creating Passkeys is Just Triggering navigator.credentials.create()\#**](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#1-creating-passkeys-is-just-triggering-navigatorcredentialscreate/index.html)

_I’ve seen this WebAuthn JavaScript API where I can simply create a new passkey by calling_
_navigator.credentials.create()._

**Not really! It’s one of biggest misconception that one API call is enough.** Even though
the WebAuthn JavaScript API (called with `navigator.credentials.create()`) is the simplest
component and most straightforward part of any passkeys project, the real complexities
arise before and after this API call. If you want to adopt a passkeys-first approach, you
need to consider many more things, such as:

- **Implement two backend API endpoints for one simple passkey creation:** Developers who
have mostly worked with password-based authentication often think that they simply need
to call one backend API endpoint, like in the password world, and get a success /
failure message returned. However, with WebAuthn you need to call two backend API
endpoints with the JavaScript API call from above in between and then receive the
response. For new starters, this can be quite complex as the information sent along
needs to be in the right order and correctly encoded / formatted.
- **Provide fallbacks if passkeys don’t work or the flow is canceled:** You need
alternative authentication options like email OTP, SMS OTP, social logins or passwords
(if you don’t want to fully passwordless yet). They are needed in case the device is not
passkey-ready or the user deliberately cancels the passkey registration flow. Then, you
need to provide equally comfortable options for signing up.
- **Verify the user to avoid account take-overs:** Passkeys can also work in usernameless
way. However, in real-life applications, you need to verify the user and their login
identifier (e.g. email address or phone number) to avoid account take-over attacks. In
the worst case, someone could simply
[create a passkey](/content/blog/passkey-creation-best-practices/index.html) and use your email address as
login identifier (so no verification took place). If the system is designed in such a
way that you can use this email address (e.g., through a passkey append flow with an
email OTP) to create another passkey on a different device, then an attacker could
potentially use the first passkey to log into your account.
- **Detect if passkeys are already stored on the device:** It's important to know which
devices have passkeys stored and which do not (in order to know where
[passkey creation](/content/blog/passkey-creation-best-practices/index.html) / logins can be securely
offered to users – more on that later). In the
[passkey creation](/content/blog/passkey-creation-best-practices/index.html) case, allowing
[multiple passkeys per account](/content/faq/multiple-passkeys-per-account/index.html) could lead to major
user confusion. We call these decision rules
“ [passkey intelligence](https://docs.corbado.com/corbado-connect/features/passkey-intelligence)”,
as a logic around passkeys, users and devices needs to be developed.

Igor Gjorgjioski

Senior Product Lead, VicRoads

We hit 80% mobile passkey activation across 5M+ users without replacing our IDP.

See how VicRoads scaled passkeys to 5M+ users, alongside their existing IDP.

[Read the case study](/content/blog/vicroads-passkeys/index.html)

- **Support cross-device registration & hardware security keys:** Do you want to allow the
creation of a passkey on a different device from the one you are currently using to
access the application? Or do you need to support hardware / [FIDO2](/content/glossary/fido2/index.html)
security keys (e.g. [YubiKeys](/content/glossary/yubikey/index.html))? If yes, there are some important
things to consider for your implementation, that have impact on the
`PublicKeyCredentialCreationOptions` used in navigator.credentials.create():
  - Do you want to prioritize cross-device registration /
    [hardware security keys](/content/blog/best-fido2-hardware-security-keys/index.html) over local
    passkeys?
  - Do you want to offer them as an equal option?
  - Do you want to offer them only as a fallback? Should this fallback only be available
    in logins or also in account sign-ups?
- **Adapt the backend & database:** Choosing the WebAuthn server (basically a library) is
pretty straightforward and so is the installation (e.g.
`npm install @simplewebauthn/server`). But then the real challenge starts:
  - How are you going to connect the passkey logic to your system? All passkey detection
    and
    [passkey intelligence](https://docs.corbado.com/corbado-connect/features/passkey-intelligence)
    operations (see #2, #11 and #23) are influenced by this decision. The most complex
    aspect is how to integrate things. Adapting existing flows, taking care of session
    management and transitioning existing users to passkey requires adaptations. You
    need to provide intelligence for passkeys, user and devices, as well as fallbacks in
    case of non-passkey-readiness.
  - Have you already drafted the credential database table with all the columns, flags,
    data types, that work with your database system, your WebAuthn server and your
    programming language. If yes, please don’t forget to look at the right encodings
    (WebAuthn challenges are Base64URL encoded, while public keys are encoded in
    [COSE](/content/blog/webauthn-pubkeycredparams-credentialpublickey/index.html) format and
    `authenticatorData` is serialized in [CBOR](/content/glossary/cbor/index.html)). Hopefully, you also
    have an idea on how to store credential-specific attributes and settings (e.g.
    `transports` information or `authenticatorAttachments`)? The hard things is that
    most of the existing WebAuthn server libraries do not come with the actual
    credential storage. It needs to be designed and implemented all by yourself (also
    all relevant credential information needs to be extracted from the WebAuthn
    responses manually).
- **Implement passkey-specific UX:** Creating passkeys is great for UX. But that only
counts for the creation process itself when the [Face ID](/content/faq/is-face-id-passkey/index.html) modal
comes up and the user just scans their face as they do countless times during the day.
The challenge lies more often before and after this particular ceremony and requires a
lot of additional user flows that need to be implemented (see our product design and
strategy guide for detailed flow recommendations):
  - Consider when to offer the
    [passkey creation](/content/blog/passkey-creation-best-practices/index.html): after every successful
    login with an existing method? Even after a [social login](/content/glossary/social-login/index.html)
    with a Google account?
  - What about users that have not verified their email address / phone number? How
    should they be treated, given that, from a technical point of view, they could
    [create a passkey](/content/blog/passkey-creation-best-practices/index.html) without any problem?
  - Where will users manage their passkeys? Do they use a
    [first-party passkey provider](/content/blog/passkey-providers/index.html) (e.g.
    [iCloud Keychain](/content/glossary/icloud-keychain/index.html) or
    [Google Password Manager](/content/blog/how-to-use-google-password-manager/index.html)) or a
    third-party [passkey provider](/content/blog/passkey-providers/index.html) (e.g.
    [Dashlane](/content/blog/dashlane-passkeys/index.html),
    [1Password](/content/blog/1password-passkeys-best-practices-analysis/index.html) or
    [KeePassXC](/content/blog/keepassxc-passkeys/index.html)). All that affects where passkeys can later be
    used for logins.
  - Should users be allowed to add multiple passkeys per device?

Recent Articles

- ♟️
[Testing Passkey Implementations (Enterprise Passkeys Guide 5)](/content/blog/testing-passkeys/index.html)
- ♟️
[Integrating Passkeys into Enterprise Stack (Enterprise Passkeys Guide 4)](/content/blog/integrate-passkeys-enterprise-stack/index.html)
- ♟️
[Product, Design & Strategy Development (Enterprise Passkeys Guide 3)](/content/blog/passkeys-product-design-strategy/index.html)
- ♟️
[Enterprise Guide: Passkeys for Existing Large-Scale Consumer Deployments](/content/blog/introducing-passkeys-large-scale-overview/index.html)
- 📖
[Passkey & WebAuthn Database: Guide for Columns & Fields](/content/blog/passkey-webauthn-database-guide/index.html)

[**\#2 Passkeys Logins are Only About When to Trigger navigator.credentials.get()\#**](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#2-passkeys-logins-are-only-about-when-to-trigger-navigatorcredentialsget/index.html)

_Okay, there’s some more to creating a passkey but to login with a passkey, I simply call_
_the WebAuthn JavaScript API via `navigator.credentials.get()`, as the passkey already_
_exists._

**Eh nope. It’s the other way around.** Outstanding passkey experience during
authentication means to figure out when not to start a passkey authentication ceremony in
the first place to prevent dead-ends and unnecessary loops. Yes, this can even happen on
devices that support passkeys in general if there is no passkey available at this device
(see also [#3](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#3-available-passkeys-can-be-detected-from-the-browser/index.html))! Don’t believe us?
Then, take a look the following examples:

- **Example 1 “Windows 10 or 11 desktop without Bluetooth”:** A user signs up and creates
a passkey on their iPhone with [iOS 17](/content/blog/apple-passkeys-integration/index.html). Then, the
users uses their desktop that runs on [Windows 11](/content/blog/passkeys-windows-11/index.html). Although
[Windows 11](/content/blog/passkeys-windows-11/index.html) supports passkeys, the computer lacks Bluetooth,
which is required for WebAuthn
[Cross-Device Authentication](/content/blog/proximity-exchange-protocol-pxp/index.html) (CDA) via QR codes
(it's a security measure to ensure both devices are in proximity).
- **Example 2 “Device-bound passkeys”:** Often, workplace computers run on Windows 10 or
[Windows 11](/content/blog/passkeys-windows-11/index.html). Passkeys created on these systems are not
synced to other devices (->
[device-bound passkeys](/content/faq/are-passkeys-device-specific/index.html)). Attempts to login with a
passkey on another device will fail because the user does not have an alternative
passkey on a mobile device for CDA.

However, the scenario can also reverse:

- **Example 3 “Third-party passkey providers”:** Some users might use password managers
like [1Password](/content/blog/1password-passkeys-best-practices-analysis/index.html),
[KeePassXC](/content/blog/keepassxc-passkeys/index.html) or [Dashlane](/content/blog/dashlane-passkeys/index.html), which now
also store passkeys as third-party passkeys providers across operating systems. If the
passkey from example 1 or 2 is stored in one of these password managers, the
[passkey login](/content/blog/passkey-login-best-practices/index.html) should be permitted. Therefore, you
need to know where the passkey was created, whether the current device has the
[password manager](/content/blog/passkeys-vs-password-managers/index.html) installed and active, and if the
passkey is synced, to provide a convenient login experience without locking the user
out.

To ensure a seamless [passkey login](/content/blog/passkey-login-best-practices/index.html) experience, it’s
essential to be highly certain that the login process will succeed before initiating the
passkey login ceremony. This helps avoid false positives (thus, it's necessary to track
how often and how a user logs in to influence the decision on which login method to
offer), minimizes disruptions, and prevents inefficient authentication loops that could
frustrate users and lower [conversion rates](/content/blog/logins-impact-checkout-conversion/index.html).

Subscribe to our Passkeys Substack for the latest news.

[Subscribe](https://passkeys.substack.com/)

[**\#3 Available Passkeys can be Detected from the Browser\#**](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#3-available-passkeys-can-be-detected-from-the-browser/index.html)

_Okay, I understand that I need to check if a passkey is available before triggering a_
_login. This should be fairly easy with some other browser feature or JavaScript API,_
_right?_

**Absolutely not.** This is a big fallacy – if not the biggest – and it actually causes
many of the subsequent fallacies or is related to them. Knowing in advance (before any
WebAuthn ceremony starts) whether a passkey is available on a device would be a tremendous
help in facilitating the login, as you would then know that there can’t be a mismatch or
error in the login process. Without this knowledge, you need to use other factors that
help improve the UX and avoid any unexpected failures that disrupt the login experience.

Let’s understand why available passkeys on a device cannot be detected from the browser.
Passkeys and the [FIDO Alliance](/content/glossary/fido-alliance/index.html), as the driving force behind
them, have a strong
[privacy-by-design](https://fidoalliance.org/wp-content/uploads/2014/12/FIDO_Alliance_Whitepaper_Privacy_Principles.pdf)
mindset. All passkey operations are designed to prevent identification of users and the
revealing of any privacy-related data based on their available passkeys. Only after an
authentication on the device using fingerprint scanning or
[Face ID](/content/faq/is-face-id-passkey/index.html), which is treated like explicitly providing user
consent, more information is given. That’s why you can test for passkey-readiness of a
device and browser with one of the following methods but it is **impossible to directly**
**detect whether a passkey already exists on a specific device prior to any WebAuthn**
**operation**:

- Is my device & browser WebAuthn-ready: `PublicKeyCredential`
- Is my device & browser passkey-ready
(platforma- [authenticator](/content/glossary/authenticator/index.html)-ready):
`PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable()`
- Is my device & browser Conditional-UI-ready:
`PublicKeyCredential.isConditionalMediationAvailable()`

See how many people actually use passkeys.

[View Adoption Data](https://state-of-passkeys.io/)

[**\#4 User Agents are Great for Device Recognition\#**](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#4-user-agents-are-great-for-device-recognition/index.html)

_I see that there is no feature to directly detect passkey availability from the browser,_
_so I think I’ll just use the good older user agent to manage devices and passkeys._

**Good idea – might just not work as easy, especially not on all browsers!** After reading
through the first fallacies, you might consider implementing a proper device management
system (in this context called
[passkey intelligence](https://docs.corbado.com/corbado-connect/features/passkey-intelligence))
to detect where passkeys were created and from where the user might try to login with a
passkey. Building such a passkey intelligence to detect devices in 2024 is not as easy as
it used to be:

- **User agents are phased out:** A robust
[user-agent](/content/blog/client-hints-user-agent-chrome-safari-firefox/index.html) parsing library is
essential to accurately detect the operating system, browser, and device type (mobile or
desktop) from the [user-agent](/content/blog/client-hints-user-agent-chrome-safari-firefox/index.html) HTTP
header. Unfortunately, this method remains fully effective only for Safari. All other
browsers are about to phase out the
[user agent](/content/blog/client-hints-user-agent-chrome-safari-firefox/index.html) soon (or have already
done so).
- **Chromium’s user-agent reduction initiative:** Chromium-based browsers (e.g. Chrome,
Edge) and Firefox have significantly reduced the level of detail in their
[user-agent](/content/blog/client-hints-user-agent-chrome-safari-firefox/index.html) strings as part of
their [user-agent reduction](/content/blog/client-hints-user-agent-chrome-safari-firefox/index.html)
initiative (primarily to avoid tracking and protect
[user privacy](/content/faq/ensure-gdpr-compliance-with-passkeys/index.html)). To effectively recognize
devices using Chrome, Edge or Firefox, the usage of
[client hints](/content/blog/client-hints-user-agent-chrome-safari-firefox/index.html) (e.g. via
`navigator.userAgentData.getHighEntropyValues()`) is necessary. This JavaScript API is
used for the precise distinction between operating systems and browsers (+ corresponding
versions). Note that Safari does not support this API, and also that
[client hints](/content/blog/client-hints-user-agent-chrome-safari-firefox/index.html) cannot be retrieved
via HTTP headers out-of-the-box.

Consequently, to provide passkey intelligence for all browsers, you need to support both
methods ( [user agent](/content/blog/client-hints-user-agent-chrome-safari-firefox/index.html) & client hint
parsing). Implementing these APIs in your passkey intelligence is a lot of work and don’t
forget: devices and browsers update continuously. That’s why you need passkey intelligence
that supports updates for operating systems and browsers.

Become part of our Passkeys Community for updates & support.

[Join](https://bit.ly/passkeys-community)

[**\#5 An Open Standard like WebAuthn is Easy-to-Read\#**](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#5-an-open-standard-like-webauthn-is-easy-to-read/index.html)

_The WebAuthn specification should facilitate the use of secure and simple authentication._
_Therefore, it will be probably easy-to-read and understandable._

**Nope – unless you are an expert authentication or have a PhD in cyber security.**
Cryptographic protocols and authentication standards are difficult to read and understand.
And so is WebAuthn. There are a lot of complexities to be understood, when you want to
implement passkeys / WebAuthn. You’ll need a lot of know-how that is not part of the
WebAuthn standard. How come? To answer this question, you need to understand the different
WebAuthn Levels, especially from a chronological perspective and that the older ones were
written in a time where [hardware security keys](/content/blog/best-fido2-hardware-security-keys/index.html)
were the primary method for WebAuthn (and not platform
[authenticators](/content/glossary/authenticator/index.html) like [Face ID](/content/faq/is-face-id-passkey/index.html) or
[Windows Hello](/content/glossary/windows-hello/index.html)):

- **WebAuthn Level 2 (current version; since April 2021):** Passkeys were initially not
included in this released version, as the term 'passkeys' and the sync feature were
introduced in 2022. There is significant industry effort, especially by the FIDO
Alliance, to make the WebAuthn standard in general more passkey-like. As a result, many
features have been incorporated into the draft of
[WebAuthn Level 3](/content/blog/passkeys-prf-webauthn/index.html), which has not yet been released. But
passkeys are already available today, so the WebAuthn level 2 is still the official
version. This add complexity (especially as some aspects are no longer in the
passkey-era or are redundant, e.g. `requireResidentKey` vs. `residentKey` or
recommendations regarding the usage of [attestation](/content/glossary/attestation/index.html)).
- **WebAuthn Level 3 (expected from the end of 2024 onwards):** The
[WebAuthn Level 3](/content/blog/passkeys-prf-webauthn/index.html) standard is supported by a wide range of
industry players. When the Web Authentication Working Group agrees on a new feature and
organizations like Google, Apple, Microsoft, and Mozilla implement this feature in their
browsers, it immediately becomes the de facto standard. Usually, the market pressure is
significant when Apple (with Safari, [iOS](/content/blog/webauthn-errors/index.html), and macOS) and Google
(with Chrome and [Android](/content/blog/how-to-enable-passkeys-android/index.html)) implement the feature,
as they control the majority of the desktop and mobile browser market, along with their
respective operating systems.

To stay up-to-date with the WebAuthn standard and keep pace with the passkey usability of
larger platforms (e.g., [Android](/content/blog/how-to-enable-passkeys-android/index.html),
[iOS](/content/blog/webauthn-errors/index.html), macOS, Windows), it is necessary to monitor a variety of
input sources besides the existing (and continuously updated) WebAuthn spec:

- Follow the [WebAuthn GitHub issues](https://github.com/w3c/webauthn/issues) to
anticipate new passkey / WebAuthn features early on and understand why they might or
might not be introduced.
- Regularly take a look at
[WebAuthn Level 3: Editor's draft](https://w3c.github.io/webauthn) commits to see how
the standard changes
- Check
[Chromium feature requests and releases](https://issues.chromium.org/issues?q=status:open%20componentid:1456855&s=created_time:desc)
to test new features and adapt your auth solution accordingly
- Review [Mozilla & Webkit issues](https://bugzilla.mozilla.org/show_bug.cgi) to test new
features and understand browser behavior

As the passkey / WebAuthn ecosystem is highly heterogeneous, the standard is interpreted
and implemented differently. Therefore, depending on the
[WebAuthn server library](/content/blog/webauthn-server-implementation/index.html) used, you need to handle
various WebAuthn levels in your ceremonies. Since new passkeys are continuously being
developed, it’s almost certain that there will be new changes in the future, which will
further complicate matters. To feel this heterogeneity and complexity yourself, feel free
to research the following topics in the context of WebAuthn and check the corresponding
discussions:

- Passkeys themselves (especially the sync feature)
- [Conditional UI](/content/glossary/conditional-ui/index.html)
- `supplementalPubKeys`
- [PublicKeyCredentialHints](https://github.com/w3c/webauthn/issues/2053) (to deprecate
AuthenticatorAttachment)

[**\#6 Passkey Management UI is Easy-to-Build\#**](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#6-passkey-management-ui-is-easy-to-build/index.html)

_Building a passkey management UI and the corresponding functionality to create, edit and_
_delete passkeys should be rather simple._

**Yes and no – while building a passkey management UI isn’t too hard there are some things**
**which are rather counter-intuitive.** Industry best practice for managing passkeys is to
list all available passkeys for a user in the account settings. Thanks to resources like
[https://passkeys.dev](https://passkeys.dev/), having access to a comprehensive list of
[passkey providers](/content/blog/passkey-providers/index.html) with logos and names is straightforward. It
can be used to display passkey-provider-specific information for a passkey. However,
managing passkeys involves more:

- **Exclude credentials when adding passkeys:** When offering an “Add passkey” button in
the account settings, the `excludeCredentials` PublicKeyCredentialRequestOption property
must be used correctly to prevent mismatches between the user's passkeys on the
client-side on their device and those stored server-side in the backend.
- **Deleting passkeys server-side could lead to confusion:** Deleting a passkey in the
account settings (server-side) is more complex. A good UI typically includes a delete
button for each listed passkey. When a passkey is deleted server-side, it remains on the
client-side (on the device). The user might still attempt to log in with it, which is
problematic. The passkey should be flagged as deleted on the server-side. Additionally,
to prevent future confusion, the `AllowCredentials` list of the
[PublicKeyCredentialRequestOptions](/content/glossary/publickeycredentialrequestoptions/index.html) in the
authentication ceremony should not be left blank if a passkey was deleted server-side.
Instead, `AllowCredentials` should be filled with all passkeys except the deleted ones.
Implementing such a logic requires intelligent passkey management on the server-side.

In general, we have often received questions about whether the `AllowCredentials` list
should be left empty or filled with credentials. The answer depends on the specific
security and operational needs:

- **Empty `AllowCredentials`:** This approach avoids credential enumeration, reducing the
risk of exposing user information to attackers. It also maximizes the available options
for the user, as it allows any stored credential to be used for authentication.
- **Filled `AllowCredentials`:** Filling the `AllowCredentials` list with credentials
enables the backend to filter out deleted passkeys. This is especially useful in
scenarios where the user identifier is known when the WebAuthn login ceremony starts
(thus not possible in usernameless login scenarios). This allows the system to list only
those passkeys that match this identifier and are not deleted. This targeted approach
enhances security by restricting the authentication process to specific credentials.

As you see, there is no clear answer to this question and you need to decide based on your
specific requirements.

[**\#7 Passkeys are New but Common Use Cases are Well Supported\#**](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#7-passkeys-are-new-but-common-use-cases-are-well-supported/index.html)

_Even though passkeys are new, they are backed by some of the most UX-oriented companies,_
_so the most common use cases for supporting passkey authentication should be well_
_supported._

Yes, passkeys are a relatively new technology, and while they effectively support the most
important use cases, particularly the plain sign-up and login process, and rise in
adoption, they **fall short on other common real-life cases**:

- **Use Case 1: Deleting a passkey on the device (client-side):** If the user decides to
locally delete the passkey on their device, the server **never receives the information**
**that this passkey cannot be used anymore**. This could lead to serious friction:
  - **Passkey login fails completely:** Let’s assume the following scenario: a user has
    deleted their passkey on a Windows 11 computer using Chrome. Passkey intelligence
    might recognize the device as a known Windows 11 system and incorrectly assume the
    passkey is still present and accessible. However, the authentication process will
    inevitably fail because the passkey (private key) no longer exists on the device.
    The user will then need to rely on a fallback method. To address this issue, passkey
    intelligence should be capable of detecting when a passkey is repeatedly used for
    authentication attempts but never successfully, suggesting it is likely inactive or
    has been deleted.

- **Confusing QR codes in CDA scenarios:** In this scenario, if a user, for example,
    deletes their mobile phone passkey from their iPhone (CDA
    [authenticator](/content/glossary/authenticator/index.html)), passkey intelligence may continue to try
    [Cross-Device Authentication](/content/blog/proximity-exchange-protocol-pxp/index.html) via
    [QR code](/content/blog/qr-code-login-authentication/index.html), operating under the assumption that
    the passkey locally still exists. This leads to the generation of erroneous QR
    codes, further complicating the situation as outlined in
    [#12](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#12-qr-codes-are-simple-and-appear-only-when-needed/index.html).

This issue is becoming increasingly prevalent due to the passkey management UIs
    for deleting passkeys introduced by Apple,
    [Android](/content/blog/how-to-enable-passkeys-android/index.html), and Microsoft. As such, the case,
    where the local passkey is missing, can arise unexpectedly and significantly
    disrupt the user experience. To mitigate this, the passkey intelligence should
    automatically detect such situations through analysis of user behavior.
- **Use Case 2: Automatic transition from password-based to passkey-based accounts:**
Currently, there is no fully standardized method for signaling that a website supports
passkeys, which would enable password managers to automatically transition
password-based accounts into passkey-based accounts. However,
[Google Password Manager](/content/blog/how-to-use-google-password-manager/index.html) supports an initial
implementation, which should be closely monitored and integrated into the passkey
authentication solution as soon as it gets broader support:

- **Use Case 3: Change passkey-associated meta data:**When a passkey is created, the
following meta data is associated with the passkey and stored on the client:
  - **user.name:** Serves as a visible login identifier, typically an email address,
    phone number or username.

- **user.displayName:** Represents the readable name of the user, used to personalize
    [Conditional UI](/content/glossary/conditional-ui/index.html) and the passkey modal experience for
    users.

This meta data is very helpful for users to distinguish different accounts and
    passkeys on a device. However, there is a crucial aspect missing: **When a user**
    **changes any of this information today, it cannot be reliably updated across all**
    **associated passkeys.**

While `user.name` and `user.displayName` play an important role for providing a
    good UX, there’s one other, less documented WebAuthn field that causes more issues
    in the login process, when there was a change: `user.id`. This field stores the
    actual primary account identifier (i.e., the ID that identifies the user account
    in your user database). Consequently, the following situation could occur: a user
    changes their email address (user.id) from `old.mail@gmail.com` to
    `new.mail@gmail.com` in the account settings. Then, the user provides the new
    email address in the email input field `new.mail@gmail.com`, triggering a passkey
    login ceremony linked to the old email `old.mail@gmail.com`, as the passkey still
    has the old email stored (also in a usernameless scenario, the user would still
    see the old email address in the
    [passkey autofill](/content/blog/webauthn-conditional-ui-passkeys-autofill/index.html) dropdown).
    Yet, access is granted (even though from a UX perspective it’s not obvious why the
    old email address still works for WebAuthn logins). Therefore, it's important to
    carefully manage how database lookups are performed.

user.name, user.displayName, user.id, response.userHandle, and
[Credential ID](/content/blog/webauthn-user-id-userhandle/index.html) can be major sources of confusion and
errors if not thoroughly understood in the beginning of your passkey implementation.

While these three use cases may be less relevant for smaller user bases, they become
increasingly common as the user base grows, particularly where unused passkeys pose
challenges for passkey intelligence operations (see
[#2](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#2-passkeys-logins-are-only-about-when-to-trigger-navigatorcredentialsget/index.html) and
[#12](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#12-qr-codes-are-simple-and-appear-only-when-needed/index.html)).

[**\#8 Passkey UX/UI is Great and Predefined\#**](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#8-passkey-uxui-is-great-and-predefined/index.html)

_Okay I get it: developing passkey authentication is technically complex, but once it's_
_implemented, the process becomes quite straightforward, right?_

- **Passkey icon:** The good news is the [FIDO alliance](/content/glossary/fido-alliance/index.html) has
created an icon for you.
- **Product management decisions:** As in any other project, where UX plays an important
role (and authentication is probably one the most crucial ones in regard to UX), the
product management team wants to provide a significant input. The most common questions
from a product management perspective are:
- **Which devices to support?:**What kind of devices can we expect among our users? How
high will the coverage of passkey-ready devices be? To answer these questions, we
recommend any organization to start analyzing the passkey-readiness of their user base’s
devices prior to any passkey launch.
  - **When and how should users be verified?:** If you are considering a passkey-first
    approach, do you plan to verify the email or phone number associated with the
    passkeys at sign-up, on first login, or never?
  - **Which mockups do we need to provide?:**Expect that you will need specific mockups
    for passkey-related flows:
    - Sign-up via passkeys or via fallback method (e.g. email OTP)
    - Login via passkeys or via fallback method (e.g. email OTP)
    - Offer adding passkeys after fallback-login on new devices
    - Create understandable error messages
    - Design a user-friendly passkey management UI
- **UX/UI best practices:**To provide a really appealing passkey UX/UI, a few more things
need to be considered before the rollout:
  - **Define a passkey introduction strategy:** Considering your user base, how do you
    plan to announce and introduce passkeys? Options include an explanatory page, email
    communications, pop-up notifications, or push notifications. We’ve seen a great a
    variety of approaches here.
  - **Facilitate transition to passkeys:** There’s a lack of best practices how you can
    nudge your users, especially non-technical ones, to
    [transition to passkeys](/content/blog/user-transition-passkeys-expert-strategies/index.html), so you
    need to come up with own strategies and flows.
  - **Look for UI recommendations:**Choose your best practices from a wide list of
    partially contradicting guidelines:
    - [Google](https://developers.google.com/identity/passkeys/ux/user-interface-design)
    - [FIDO alliance](/content/glossary/fido-alliance/index.html)
    - [web.dev](https://web.dev/articles/passkey-google-ux)
    - Real world examples (e.g. [Kayak](/content/blog/kayak-passkeys/index.html), Amazon, GitHub)
  - **Define fallback strategy:** How are you handling passkey errors? Are you going to
    immediately trigger fallback authentication or do you allow re-tries?
  - **Handle errors and provide troubleshooting guidance:** Have you ever considered
    what happens when a user is on a modern iPhone with the latest browser but hasn't
    activated the [iCloud Keychain](/content/glossary/icloud-keychain/index.html)? From the JavaScript API
    calls in the browser, the passkey intelligence would detect that the device is
    passkey-ready, but once the user starts the passkey registration ceremony, an error
    message will pop up instructing the user to activate the Keychain. This could be an
    error screen that they have never seen before, potentially causing confusion.
    Developing proper error handling and providing fallbacks for these scenarios is
    crucial.

In conclusion, while passkeys are technically complex to implement, do not underestimate
the effort required to address various product management aspects.

[**\#9 Conditional UI Always Ensures a Smooth Login Experience\#**](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#9-conditional-ui-always-ensures-a-smooth-login-experience/index.html)

_I love Conditional UI as it’s the most seamless login I’ve ever seen. I don’t even need_
_to provide a username anymore and it works so smoothly on supported devices._

**Indeed, Conditional UI provides one of the smoothest login experiences. There are**
**however some things to consider or even improve on top.** In general, one of the best
things about passkeys is that the user does not need to explicitly come up and memorize
passwords anymore. Passkeys are automatically saved by the operating system (or by a third
party [passkey provider](/content/blog/passkey-providers/index.html) like
[1Password](/content/blog/1password-passkeys-best-practices-analysis/index.html),
[KeePassXC](/content/blog/keepassxc-passkeys/index.html) or [Dashlane](/content/blog/dashlane-passkeys/index.html)) from where
they can be used in any future login attempt. Generally, with passkeys, there are three
modes to log in:

- **Regular passkey login with WebAuthn modal (after asking for login identifier first):**

Calling the WebAuthn startLogin() backend API to initiate a regular passkey login is
the way to go if the user enters their identifier first and clicks on a submit button.
This allows for preliminary checks to determine if the user exists and to assess if
passkeys exist and are accessible via passkey intelligence (see
[#11](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#11-passkeys-availability-equals-accessibility/index.html),
[#12](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#12-qr-codes-are-simple-and-appear-only-when-needed/index.html)). If the user exists but
cannot use passkeys, a fallback method is immediately triggered. Passkey intelligence
should then stop the WebAuthn login process before the
[authenticator](/content/glossary/authenticator/index.html) modal appears. Otherwise the regular WebAuthn
login process is executed.

_Regular_
_passkey login_

_Regular_
_passkey login with filled email address_

_Connect_
_to the authenticator for login_

- **Passkey login button (on top level):**

Sometimes, we see implementations that are not passkey-first (because passwords are
presented as an equally viable option). This often involves a layout where users must
actively click on a 'Login with Passkey' button. We recommend this approach only when
a large existing user base is gradually transitioning to passkeys and the current
authentication flow should not be disrupted. However, the downside is clear: users who
have not set up passkeys may be confused.

- **Conditional UI Login:** [Conditional UI](/content/glossary/conditional-ui/index.html), also known as
usernameless login, behaves differently depending on the operating system. For example,
Safari on [iOS](/content/blog/webauthn-errors/index.html) might display a modal suggesting the last used
passkey, while Chrome on Windows shows a dropdown of all available passkeys for
immediate login. These dropdowns are initiated with the `navigator.credentials.get()`
call, using the ‘mediation: “conditional”’ flag:

```
// Availability of `window.PublicKeyCredential` means WebAuthn is usable.
if (
  window.PublicKeyCredential &&
  PublicKeyCredential.isConditionalMediationAvailable
) {
  // Check if conditional mediation is available.
  const isCMA = await PublicKeyCredential.isConditionalMediationAvailable();
  if (isCMA) {
    // Call WebAuthn authentication
    const publicKeyCredentialRequestOptions = {
      // Server generated challenge
      challenge: ****,
      // The same RP ID as used during registration
      rpId: "example.com",
    };

const credential = await navigator.credentials.get({
      publicKey: publicKeyCredentialRequestOptions,
      signal: abortController.signal,
      // Specify 'conditional' to activate conditional UI
      mediation: "conditional",
    });
  }
}

```

In the source-code sample above, no username is transmitted initially. The WebAuthn server
simply creates a challenge. If the user selects an account from the Conditional UI list,
the browser signs the challenge. The [assertion](/content/glossary/assertion/index.html) includes the user.id
(as response.userHandle) and the private key is used to sign the challenge. The backend
then verifies the challenge and logs in to the correct account.

Well, seeing these different login options sounds very promising so far, **but there are**
**some caveats**. From our user testing and funnel analysis of passkeys, we've observed that
passkey modals / popups sometimes interfere with user interactions. Users might abort the
automatically initiated modals / popups, and moreover, Conditional UI is not supported on
all platforms. Therefore, we recommend leveraging `LocalStorage` information to optimize
the passkey login experience:

- **Store recently used passkey hints in `LocalStorage`:** Storing information about
recently used passkeys (e.g. credential IDs and login identifier) can help to optimize
user experience. This information can also be leveraged as input to the passkey
intelligence (further improving:
[#2](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#2-passkeys-logins-are-only-about-when-to-trigger-navigatorcredentialsget/index.html),
[#11](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#11-passkeys-availability-equals-accessibility/index.html),
[#12](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#12-qr-codes-are-simple-and-appear-only-when-needed/index.html)). Users can log in to a
'recently accessed' account with a single click, bypassing dropdowns or modals. If the
user wishes to access a different account, the UI then switches to Conditional UI.

The information displayed can be increasingly precise: For example, if a mobile device was
used for [Cross-Device Authentication](/content/blog/proximity-exchange-protocol-pxp/index.html), this detail
could be included in the message to guide the user to the correct device.

[**\#10 Passkeys Work in All Browsers as Expected\#**](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#10-passkeys-work-in-all-browsers-as-expected/index.html)

_As passkeys are supported by all major browsers, the behavior and UX should be the same_
_everywhere._

**Well no.** In general, for passkeys to work, there are two different things to consider:

1. **Available passkeys on the login device:** The operating system **and** the browser
must support passkeys (moreover the different versions of operating system and browser
play an important role). This can be detected using
`PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable()`.
2. **Passkeys in Cross-Device Authentication or Registration:** Support from the operating
system or browser for Cross-Device Authentication is required. Unfortunately, this
cannot be detected with
`PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable()`. It may
erroneously return false for devices that are capable of proceeding with Cross-Device
Authentication (CDA). You also need to check for Bluetooth availability (e.g.
`Bluetooth.getAvailability()`\- note that even if this function returns true, it does
not imply that Bluetooth is activated currently) and provide the right
`PublicKeyCredentialRequestOptions` for the WebAuthn server (both of which can hold
their own problems) – see [#4](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#4-user-agents-are-great-for-device-recognition/index.html) for
more details.

While the UI for [biometric authentication](/content/blog/passkeys-biometric-authentication/index.html)
modals in the operating system cannot be altered, browsers have implemented dialogs that
appear before these operating system UIs. These dialogs vary based on your WebAuthn server
settings (especially for `authenticatorAttachment`). Consider the following cross-device
(and simultaneously cross-platform) example where you want to use an Android to log into a
MacBook. Besides, [hardware security keys](/content/blog/best-fido2-hardware-security-keys/index.html) (e.g.
[YubiKeys](/content/glossary/yubikey/index.html)) could be used. Therefore, we define the following WebAuthn
server settings:

```
"authenticatorSelection": {
      "residentKey": "required",
      "requireResidentKey": true,
      "userVerification": "required",
      "authenticatorAttachment": "platform"
}
```

The user interfaces vary significantly for these WebAuthn server settings, as illustrated
in the following screenshots. For example, Safari (first screenshot) streamlines the
process of creating passkeys by presenting a clear path, with a subtle hint for additional
options at the bottom. Consequently, most users are likely to use Touch ID right away to
proceed.

In contrast, Chrome (second screenshot) displays a dialog that might be complex to
understand for inexperienced users, as you can decide between
“ [iCloud Keychain](/content/glossary/icloud-keychain/index.html)” (the
[first-party passkey provider](/content/blog/passkey-providers/index.html)), “S21 von Vincent” (a stored
device), “Other smartphone, other table or other [security key](/content/glossary/security-key/index.html)”
(CDA or hardware [security key](/content/glossary/security-key/index.html)) or “My Chrome Profile”. On top of
that, there’s a button on the bottom left to “Manage Devices” which even increases number
of clickable options for the user. Where should a non-technical user click to log in the
most seamless way?

When building your passkey experience, all different browsers as well as all operating
systems and platforms have to be kept in mind. Most importantly, you need to also take
operating systems and browsers into consideration that do not (fully) support passkeys
(e.g. Linux, ChromeOS and older versions of Firefox).

Moreover, one might expect that browser support for passkeys will increase over time,
leading many current problems to resolve naturally. However, what we have witnessed is
somewhat different. While most users (depending on their devices and technical savviness)
will see improvements, support must also continue for those using older browsers on
outdated devices. This situation only complicates things, as newer versions introduce
advanced [passkey features](/content/blog/social-logins-pre-filled-passkeys-customization/index.html). Still,
the most crucial aspect is ensuring that every user enjoys a superior login experience
with passkeys compared to traditional password-based methods.

Experiment with passkey flows in the Passkeys Debugger.

[Try for Free](https://www.passkeys-debugger.io/)

[**\#11 Passkeys’ Availability Equals Accessibility\#**](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#11-passkeys-availability-equals-accessibility/index.html)

_Passkeys are supported by Apple, Google and Microsoft. So, no matter which device I use,_
_I should be able to use them for logins._

**That’s only the half truth.** Passkeys are widely adopted by the most popular operating
systems and browser (mainly due the backing by Apple, Google & Microsoft that control
devices, operating systems and browsers).

However, this universal availability and support does not mean that during an
authentication event, you can simply look up public keys of passkeys in the database. It’s
a two-side detection that needs to happen during each login event, as each login event
depends on the registered passkeys and used device. The following two questions are posed
during each login:

- **Are passkeys and / or CDA supported?:** Does the device itself support passkey
authentication? If not, does it support WebAuthn Cross-Device Authentication (CDA) via
QR codes & Bluetooth?
- **Are passkeys available?:** Does the user trying to log in possess any passkeys? If
yes, can these passkeys be used in Cross-Device Authentication (e.g. they might be
stored on a mobile device only)? Are these passkeys synced in some form (e.g., from an
iPhone to a Macbook via iCloud Keychain, or from Macbook to Windows desktop via a
[password manager](/content/blog/passkeys-vs-password-managers/index.html) like Dashlane)?

Passkeys are considered truly available and accessible only if there's a match in both
aspects: the device is passkey-ready and passkeys are available. Only then, passkey login
can be possible. This is what passkey intelligence is for: It combines all available
information for passkey decisions and is built on top of any WebAuthn server / client
library.

[**\#12 QR Codes are Simple and Appear only When Needed\#**](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#12-qr-codes-are-simple-and-appear-only-when-needed/index.html)

_The passkey login via QR code looks a like a great and user-friendly way to facilitate_
_authentication across-devices. Most users should be able to understand and use it._

**Yes and no.** While Cross-Device Authentication (CDA) and registration with QR codes can
be incredibly effective and powerful tools when used correctly, **there is also a**
**significant downside:** QR codes often appear when the browser cannot find the passkeys
(on the device) that the server has suggested in the `allowCredentials` list of the
`PublicKeyCredentialRequestOptions`. If the passkeys are not found on the local device,
the browser assumes they might exist on an another mobile device, potentially available
for cross-device authentication. This assumption can lead to UX surprises with QR codes:

The problem is: The user has no idea what to do in case they don’t have a passkey
available. They might scan the [QR code](/content/blog/qr-code-login-authentication/index.html) and then get
this cryptic popup on their smartphone.

We have listed over 40 of the combinations of WebAuthn
`PublicKeyCredentialRequestOptions`, operating systems (+ versions) and browsers
(+versions) here for you. A summary of the different browser behavior can be found below:

On older Windows versions, the popups / screen, a user might face, can be even more
confusing when the device / browser does not support passkeys. See the following
screenshot from an authentication process with Windows 10 (21H2; not-passkeys-ready) on
Chrome. This might be case not to neglect, as Windows continues to account for the vast
majority of the desktop device market share:

This demonstrates the importance of passkey intelligence in order to avoid unusable QR
codes and other confusing screens resulting from passkey logins that should have been
avoided (see [#11](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#11-passkeys-availability-equals-accessibility/index.html)).

[**\#13 Passkeys Are Universal and Thus Easily Testable\#**](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#13-passkeys-are-universal-and-thus-easily-testable/index.html)

_Nice, passkeys are available on most devices. That should also make testing not a big_
_deal._

**Well, that’s not the full story**. Passkeys are great as they introduce the first
[phishing](/content/glossary/phishing/index.html)-resistant auth method, that is also user-friendly. They can
only be used on the domain where they have been created for. This is great in real-life,
**but makes development and testing of passkey-based applications painful**:

- **Secure context (https) required for all systems:** Passkeys only work in secure
contexts (`https` is required). This also implies that all testing and staging systems
need to be set up to work with https.
- **Local testing is complex:** Local testing of passkeys (`localhost`) is possible and
the only exception to the secure context requirement. The thing is that usually, you
want to test your passkey-based app from different, real-life operating system / browser
combinations. Especially if cross-device authentication is involved, the entire local
test setup presents a significant challenge, as local web applications are often not
reachable from other devices than the device they are being developed on. Using a local
IP address, if you are in the same Wi-Fi, is no option, as
[Relying Party](/content/glossary/relying-party/index.html) IDs cannot be IP addresses, but need to be
domains. Also setting up a tunnel or using a service like ngrok might be only short-term
solution. Each time you get a new ngrok URL, you need to change the
[Relying Party](/content/glossary/relying-party/index.html) ID in your WebAuthn server settings.
- **Authenticator performance decreases with number of test credentials:** Testing
typically involves setting up passkeys on [authenticators](/content/glossary/authenticator/index.html) and
frequently re-registering them, whether it’s because you've flushed the database,
changed the [Relying Party](/content/glossary/relying-party/index.html) ID, or simply wish to conduct
multiple tests of the passkey creation process. One issue is that some
[authenticators](/content/glossary/authenticator/index.html), especially on Windows, tend to slow down as
the number of passkeys they need to handle increases (e.g., 200+).
- **Debugging is cumbersome:** To properly debug your backend, you typically need a set of
custom-developed tools that parse and decode details and properties of passkeys. These
tools help investigate issues with your passkey intelligence, such as decoding WebAuthn
challenges in Base64URL, decoding public keys in
[COSE](/content/blog/webauthn-pubkeycredparams-credentialpublickey/index.html) format, or deserializing
`authenticatorData` information in [CBOR](/content/glossary/cbor/index.html).
- **Native app testing requires a publicly reachable server:** If you develop for a
[native app](/content/blog/native-app-passkeys/index.html) (e.g. iOS or Android), new things become
important during testing. You need to have the `apple-app-site-association` file or the
`assetlinks.json` file hosted on a server and this association file needs to be
reachable by Apple and Google (to check its validity). This implies that only having a
local relying party server is no option (contrary to web apps where this would suffice).
Plus, things become even more complex when you want to test a scenario with a web app
and [native app](/content/blog/native-app-passkeys/index.html) that should share the same passkeys (thus
needing to have the same relying party ID).

While many libraries and code snippets support basic
[WebAuthn server implementation](/content/blog/webauthn-server-implementation/index.html) and client-side
functionality, there is a notable lack of documentation for real-life use cases such as
Cross-Device Authentication, end-to-end [passkey testing](/content/blog/testing-passkeys/index.html), or
general passkey debugging.

[**\#14 Only Adding Passkeys to an Existing Auth Solution is Easy\#**](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#14-only-adding-passkeys-to-an-existing-auth-solution-is-easy/index.html)

_Okay, I understand that designing and implementing a full-fledged passkey-first_
_authentication solution might be tricky, but simply adding passkey as an authentication_
_option to our current auth solution should be a lot easier._

**That’s sadly not the full story.** From what we have experienced with existing apps that
already have larger user bases, avoiding friction in any kind and offering a seamless
passkeys experience are even more important than in to-be-built apps. Here, it’s crucial
to provide an easy-to-understand onboarding to passkeys and avoid friction to today’s
authentication process at any cost. To fulfil these requirements, there is usually a ton
of additional things to develop that are no fun and will distract you from actually
building your core product features. The following things need to be built or adapted:

- **Adapt the passkey intelligence to fit current database fields and login flows:** All
issues when developing your passkey intelligence also apply to the case of simply
plugging passkeys into existing authentication flows. It can sometimes be even more
complicated when existing fields for password-based authentication need to remain as
they are. That’s going to be particularly interesting in the case of autofill, where
password and [passkey autofill](/content/blog/webauthn-conditional-ui-passkeys-autofill/index.html) may be
used concurrently (Conditional UI can facilitate the process but sometimes it does not
work or email fields are autofilled via LocalStorage).
- **Gradual device-, user- or cohort-based rollout:**Product managers usually want to
gradually start their passkey rollout and provide users the possibility to opt in to
passkeys. The “Do you want to add a passkey” popup becomes the center of attention and
developers will face questions from the product department like:
  - What is the take-rate for passkeys?
  - Can we start by only deploying passkeys to internal users (based on our domains or
    our company office IP address) before making it available to other user groups?
  - Can we quickly switch passkey logins off in case of unforeseen events?
  - Can we start only with certain devices (e.g. only MacBooks & iPhones), as they are
    in a more or less closed ecosystem and have high passkey-readiness?
  - What are the auth funnel metrics of passkeys and how much better are they than
    today’s authentication?
  - Can we easily add custom rules to exclude certain browser and operating system
    combinations from passkey authentication if we encounter a problem with them?
- **Audit logging & KPI reporting:**The aspects mentioned above are usually not
exhaustive. Once the initial launch is successfully completed, the product team requires
KPIs for various purposes, and the IT security / compliance team needs logs for auditing
purposes. From product-side, the following KPIs are among the most-requested ones:
  - How fast are passkey logins attempts (especially compared to the password-based
    auth)?
  - How many Conditional UI logins do we have?
  - What errors are my users facing?
  - Are potential errors originating from the backend or the frontend / JavaScript?

The more users there are, the more additional features – such as
[gradual rollout](/content/faq/gradual-rollout-support-passkey-adoption/index.html), logging, analytics, and
reporting – are needed to control risk. Implementing these features in mature systems is
no fun for developers due to the significant additional overhead (remember you just wanted
to add passkeys to the product?).

[**\#15 Please Help Me: I Think I Don’t Want Passkeys Anymore\#**](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#15-please-help-me-i-think-i-dont-want-passkeys-anymore/index.html)

_Okay, after reading the article, I think I’ll stick with my current password-based auth_
_solution and do not implement passkeys, as it seems like too much implementation work._

We understand the challenges that come with rapidly evolving technology and the
introduction of new features. However, rest assured, we've got your back. Passkeys are set
to become the most popular login method shortly. Once consumers experience the speed and
simplicity of using passkeys, there’s no turning back. The demand for passkeys and
[biometric authentication](/content/blog/passkeys-biometric-authentication/index.html) is only expected to
grow as more people realize their immediate benefits (refer to the Google Trends
screenshot below—the significant spike occurred when Google made passkeys the default
login method for all their accounts in May 2023). We often joke that passkeys are like a
drug – once you've experienced them, you don't want to go back to using passwords.

Moreover, most consumers cannot tell the difference between websites/apps secured with
local [biometric authentication](/content/blog/passkeys-biometric-authentication/index.html) (e.g., Face ID)
and those protected with passkeys (when explaining passkeys to friends, no matter how
technical their background, they often mention that this isn’t a new feature because their
iCloud Keychain has had such a biometric feature to log them in automatically on websites
and apps for several years). We have to admit: both methods – passkeys and local biometric
authentication – are similar and instinctively natural to users. That’s also why we
strongly believe that it's only a matter of time before companies without passkey
capabilities will seem outdated. Just think of:

- Stationary shops that don't support Apple / [Google Pay](/content/blog/how-to-use-google-pay/index.html)
- People using SMS instead of messenger apps like [WhatsApp](/content/blog/whatsapp-passkeys/index.html) or
Telegram
- People unlocking their smartphone with a password instead of biometrics / PIN pattern

Ultimately, consumers drive market changes, and they are clearly signaling that passkeys
are the future.

Implementing passkeys is hard. The devil is in the unknown unknowns. What might initially
seem like a simple one sprint task could escalate into a major implementation project if
you aim to fully leverage all the benefits of passkeys.

To help address this challenge at scale, we want to help all developers in implementing
passkeys quickly and for free with our community plan. Our components and SDKs are easy to
integrate and customizable, enabling you to provide your users with the most secure and
most convenient login. If you’re interested, you can get started
[here](https://app.corbado.com/signin#register). Feel free to also join our
[Passkeys Community](https://bit.ly/passkeys-community) or subscribe to our
[Passkeys Substack](https://passkeys.substack.com/). Let’s make the Internet a safer place
together!

[**Bonus \#1: Prepare Your Setup\#**](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#bonus-1-prepare-your-setup/index.html)

To help you get a set of devices needed to properly test your self-built passkey
authentication solution, we have compiled a list of devices that we use for internal
testing. Trust us, using BrowserStack and other emulators works only to a certain extent:

1. PC with Windows 10 (where Bluetooth can be switched on and off)
2. PC with Windows 11 (21H2)
3. PC with Windows 11 (22H2+)
4. MacBook with macOS <=12 (Monterey or older)
5. MacBook with macOS 13+ (Ventura or newer; but not with version 13.6.5 where passkey
auth is broken)
6. Android with Android <=8 (Oreo or older)
7. Android with Android 9+ (Pie or newer)
8. iPhone with iOS <=15
9. iPhone with iOS 16+

Moreover, the following resources are required or useful in your passkey development
efforts:

- **WebAuthn Server**: See our guide for finding your WebAuthn server here (also this
WebAuthn server needs to be reachable during your local development, so you need a
tunnel or tool like ngrok - with all the fun that comes with local relying party IDs)
- **Database Schema**: See our introduction guide on databases here.
- **Passkeys Cheat Sheet**: Speed up your development with the most important passkey /
WebAuthn know-how from the specification including examples.
- **WebAuthn Virtual Authenticator**:
[Browser dev tool](https://docs.corbado.com/corbado-connect/helpful-guides/google-chrome-virtual-authenticator)
to simulate passkey / WebAuthn sign-ups and logins and save time / resources for real
authenticators.
- **End-2-End Testing Framework**: See here how we do it.
- **Unit Test Set for Passkey Intelligence**: The test set should cover most use cases
(probably at least 50). A good start point is the compatibility matrix from
[passkeys.dev](https://passkeys.dev/)

[**Bonus \#2: Passkeys are Only Authentication but You Need More\#**](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#bonus-2-passkeys-are-only-authentication-but-you-need-more/index.html)

So far, we have only described the considerations you need to address when implementing
passkeys. However, passkeys represent just one authentication option in modern systems. In
real-life scenarios, to truly leverage most of the value of passkeys, there are additional
things you need to implement, which can complicate matters.

- **Combine passkeys with other auth methods:** Depending on your requirements, you might
need to provide other auth options (e.g. passwords, OTPs via email / SMS, TOTP, social
logins) – be it as fallback or as an adequate alternative the user can choose from.
Specifically, in the context of B2B enterprise software, there might the requirement to
integrate [SSO](/content/blog/passkeys-single-sign-on-sso/index.html) / SAML along passkeys, which could be
another major endeavor.
- **Add secure and efficient session management**: Authentication using passkeys is the
initial step, but to avoid requiring users to re-authenticate at every page load, you
need to implement session management. This is a complex field in itself, with various
approaches, such as decentralized JWTs versus centrally-stored sessions.
- **Introduce authorization, roles & permissions**: Anyone who needs authentication and
works in enterprise workforce contexts will soon also require authorization. It's
essential to provide your users with roles and different permissions. Additionally,
please familiarize yourself with prominent concepts like Role-Based Access Control
(RBAC) and Attribute-Based Access Control (ABAC).

[**How Corbado can help\#**](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#how-corbado-can-help/index.html)

The unknown unknowns in this article share one property: they do not exist on your laptop.
Conditional UI behaves differently in a [WebView](/content/blog/native-app-passkeys/index.html), a QR code
appears on a device you never tested, a firmware update breaks an append flow for one
Android model. You find these by watching real sessions. [Corbado Observe](/content/observe/index.html), the
[authentication observability](/content/blog/authentication-observability/index.html) layer, is an SDK you
drop into your web and native clients. It records each WebAuthn ceremony where it actually
runs, on the client, which turns most of the pitfalls above into measurements.

[Look's like your browser doesn't support this video.See Passkey Errors in Corbado Observe →](/content/observe/passkey-errors/index.html)

- **Stop guessing from the user agent (#4, #3):** [Client Capabilities](/content/blog/webauthn-client-capabilities/index.html) turns six of the keys a web
client reports about itself into cohort shares, `userVerifyingPlatformAuthenticator`,
`conditionalCreate`, `conditionalGet`, `hybridTransport`, `relatedOrigins` and `signal`,
filtered by application, touchpoint and OS. The longer list the SDK collects, Bluetooth
availability, the screen lock, private browsing, automation and the WebAuthn extensions,
stays per session in the client environment box under User Search, so use it to explain
one flow rather than to size a population. You cannot enumerate a user's passkeys from
the browser, and this is the measured substitute the article asks for.
- **Separate the three ways a ceremony ends (#9, #10, #12):** Passkey Errors attributes
failed ceremonies to a concrete WebAuthn reason, with a step that errored, a step that
stopped and a subflow that produced no follow-up event as three distinct triggers.
Subflow Explorer then counts each subflow on its own, how often it completed, how often
it errored and how long it ran, so a conditional UI that silently shows nothing looks
very different from a rejected [assertion](/content/glossary/assertion/index.html).
- **Reconstruct the one report you cannot reproduce (#13):** User Search replays an
individual login journey as the event batches it was made of, which is the thing testing
across a browser matrix cannot give you.

Observe runs on top of whatever authentication you already have, so you can measure the
pitfalls above before deciding how much of the rest of this article you want to build
yourself.

## About Corbado

Corbado is the **Passkey Intelligence Platform** for large-scale CIAM teams running consumer authentication. We help you see what IDP logs and generic analytics tools can't: where passkeys, passwords, OTP, social login and fallback journeys succeed, stall or fail, which devices and browsers create friction, and when an OS update silently breaks login. Two products: **Corbado Observe** layers **process mining and observability across authentication journeys.** **Corbado Connect** adds **managed passkeys with analytics built in** alongside your IDP. VicRoads runs passkeys for 5M+ users with Corbado (more than 80% passkey activation rate). [Talk to a Passkey Expert →](/content/contact/index.html)

[**Frequently Asked Questions\#**](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#frequently-asked-questions/index.html) [**Why do unexpected QR codes appear during passkey login and how do I prevent them?\#**](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#why-do-unexpected-qr-codes-appear-during-passkey-login-and-how-do-i-prevent-them/index.html)

QR codes appear when the browser cannot find passkeys listed in the server's
[allowCredentials](/content/glossary/allowcredentials/index.html) on the local device, causing the browser to
assume those passkeys exist on another device for Cross-Device Authentication. Passkey
intelligence that accurately tracks which devices hold which passkeys can prevent these
erroneous prompts. Without such intelligence, users encounter confusing dead-end screens,
particularly on older Windows versions.

[**How do I handle a user deleting a passkey on their device when my server still considers it active?\#**](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#how-do-i-handle-a-user-deleting-a-passkey-on-their-device-when-my-server-still-considers-it-active/index.html)

When a passkey is deleted client-side, the server receives no notification of the removal.
Passkey intelligence should detect repeated failed authentication attempts for a
credential and flag it as likely inactive or deleted. The
[AllowCredentials](/content/glossary/allowcredentials/index.html) list in
[PublicKeyCredentialRequestOptions](/content/glossary/publickeycredentialrequestoptions/index.html) should
also exclude server-side deleted passkeys to prevent erroneous
[QR code](/content/blog/qr-code-login-authentication/index.html) flows and broken login loops.

[**What are the real limitations of Conditional UI for passkey login across platforms?\#**](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#what-are-the-real-limitations-of-conditional-ui-for-passkey-login-across-platforms/index.html)

Conditional UI behaves differently across platforms: Safari on iOS may show a modal for
the last used passkey while Chrome on Windows displays a full dropdown of available
credentials. It is not supported on all platforms and passkey modals can interfere with
user interactions, causing unexpected aborts. Storing recently used
[passkey hints](/content/blog/webauthn-public-key-credential-hints/index.html) in LocalStorage is a
recommended complement to optimize the experience where Conditional UI is unavailable or
unreliable.

[**Should I leave the AllowCredentials list empty or populate it during a WebAuthn authentication ceremony?\#**](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#should-i-leave-the-allowcredentials-list-empty-or-populate-it-during-a-webauthn-authentication-ceremony/index.html)

An empty [AllowCredentials](/content/glossary/allowcredentials/index.html) list avoids credential enumeration
and permits any stored credential to authenticate, but prevents filtering of deleted
passkeys. Populating AllowCredentials restricts authentication to specific credentials and
enables exclusion of deleted passkeys, though this approach is not applicable in
usernameless login scenarios where the user identifier is unknown. The correct choice
depends on your security requirements and operational context.

[**What additional components are needed beyond passkeys for a complete production authentication system?\#**](/content/blog/passkey-implementation-pitfalls-misconceptions-unknowns#what-additional-components-are-needed-beyond-passkeys-for-a-complete-production-authentication-system/index.html)

Passkeys cover the authentication step only: production systems also require session
management such as JWTs or centralized sessions, fallback methods like email OTP or social
login and authorization with roles and permissions such as RBAC. In B2B enterprise
contexts, [SSO](/content/blog/passkeys-single-sign-on-sso/index.html) and SAML integration may be required
alongside passkeys. These additions significantly expand implementation scope beyond the
WebAuthn protocol itself.

See what's really happening in your passkey rollout.

[Book a Demo](/content/contact/index.html)

Share this article

* * *

Related Articles

\\
\\
**Testing Passkey Implementations (Enterprise Passkeys Guide 5)** \\
\\
Vincent Delitz - December 9, 2024](/content/blog/testing-passkeys/index.html)

\\
\\
**Integrating Passkeys into Enterprise Stack (Enterprise Passkeys Guide 4)** \\
\\
Vincent Delitz - October 28, 2024](/content/blog/integrate-passkeys-enterprise-stack/index.html)

\\
\\
**Product, Design & Strategy Development (Enterprise Passkeys Guide 3)** \\
\\
Vincent Delitz - October 16, 2024](/content/blog/passkeys-product-design-strategy/index.html)

\\
\\
**Passkeys E2E Playwright Testing via WebAuthn Virtual Authenticator** \\
\\
Anders - March 30, 2024](/content/blog/passkeys-e2e-playwright-testing-webauthn-virtual-authenticator/index.html)

\\
\\
**Enterprise Guide: Passkeys for Existing Large-Scale Consumer Deployments** \\
\\
Vincent Delitz - September 26, 2024](/content/blog/introducing-passkeys-large-scale-overview/index.html)

\\
\\
**WebAuthn Cross-Device-Authentication: Passkeys via Mobile-First Strategy** \\
\\
Vincent Delitz - April 9, 2024](/content/blog/webauthn-cross-device-authentication-passkeys-mobile-first/index.html)

Previous slideNext slide

Table of Contents
