Passkey Implementation: Misconceptions, pitfalls and unknown unknowns

https://www.corbado.com/blog/passkey-implementation-pitfalls-misconceptions-unknowns

Our mission is to make the Internet a safer place, and the new login standard passkeys provides a superior solution to achieve that. That's why we want to help you understand passkeys and its characteristics better.

“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.

TL;DR:#

“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”, “how to implement passkeys”, “passkeys in react” and “passkey libraries”. 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 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 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 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()

#2 Passkeys Logins are Only About When to Trigger navigator.credentials.get()

#3 Available Passkeys can be Detected from the Browser

#4 User Agents are Great for Device Recognition

#5 An Open Standard like WebAuthn is Easy-to-Read

#6 Passkey Management UI is Easy-to-Build

#7 Passkeys are New but Common Use Cases are Well Supported

#8 Passkey UX/UI is Great and Predefined

#9 Conditional UI Always Ensures a Smooth Login Experience

#10 Passkeys Work in All Browsers as Expected

#11 Passkeys' Availability Equals Accessibility

#12 QR Codes are Simple and Appear only When Needed

#13 Passkeys Are Universal and Thus Easily Testable

#14 Only Adding Passkeys to an Existing Auth Solution is Easy

#15 Please Help Me: I Think I Don't Want Passkeys Anymore

#1 Creating Passkeys is Just Triggering navigator.credentials.create()#

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 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 / logins can be securely offered to users – more on that later). In the passkey creation case, allowing multiple passkeys per account could lead to major user confusion. We call these decision rules “passkey intelligence”, as a logic around passkeys, users and devices needs to be developed.

Ben Gould Testimonial

Ben Gould

Head of Engineering

I’ve built hundreds of integrations in my time, including quite a few with identity providers and I’ve never been so impressed with a developer experience as I have been with Corbado.

3,000+ devs trust Corbado & make the Internet safer with passkeys. Got questions? We’ve written 150+ blog posts on passkeys.

Join Passkeys Community

  • 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 security keys (e.g. YubiKeys)? 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 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 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 format and authenticatorData is serialized in CBOR). 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 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:
    • Consider when to offer the passkey creation: after every successful login with an existing method? Even after a social login 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 without any problem?
    • Where will users manage their passkeys? Do they use a first-party passkey provider (e.g. iCloud Keychain or Google Password Manager) or a third-party passkey provider (e.g. Dashlane, 1Password or KeePassXC). All that affects where passkeys can later be used for logins.
    • Should users be allowed to add multiple passkeys per device?

#2 Passkeys Logins are Only About When to Trigger navigator.credentials.get()#

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)! 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. Then, the users uses their desktop that runs on Windows 11. Although Windows 11 supports passkeys, the computer lacks Bluetooth, which is required for WebAuthn Cross-Device Authentication (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. Passkeys created on these systems are not synced to other devices (-> device-bound passkeys). 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, KeePassXC or Dashlane, 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 should be permitted. Therefore, you need to know where the passkey was created, whether the current device has the password manager 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 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.

Substack Icon

Subscribe to our Passkeys Substack for the latest news, insights and strategies.

Subscribe

#3 Available Passkeys can be Detected from the Browser#

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, as the driving force behind them, have a strong privacy-by-design 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, 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-ready): PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable()
  • Is my device & browser Conditional-UI-ready: PublicKeyCredential.isConditionalMediationAvailable()

#4 User Agents are Great for Device Recognition#

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) 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 parsing library is essential to accurately detect the operating system, browser, and device type (mobile or desktop) from the user-agent HTTP header. Unfortunately, this method remains fully effective only for Safari. All other browsers are about to phase out the user agent 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 strings as part of their user-agent reduction initiative (primarily to avoid tracking and protect user privacy). To effectively recognize devices using Chrome, Edge or Firefox, the usage of client hints (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 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 & 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.

Slack Icon

Become part of our Passkeys Community for updates and support.

Join

#5 An Open Standard like WebAuthn is Easy-to-Read#

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 were the primary method for WebAuthn (and not platform authenticators like Face ID or Windows Hello):

  • 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, 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).
  • WebAuthn Level 3 (expected from the end of 2024 onwards): The WebAuthn Level 3 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, and macOS) and Google (with Chrome and Android) 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, iOS, macOS, Windows), it is necessary to monitor a variety of input sources besides the existing (and continuously updated) WebAuthn spec:

As the passkey / WebAuthn ecosystem is highly heterogeneous, the standard is interpreted and implemented differently. Therefore, depending on the WebAuthn server library 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:

#6 Passkey Management UI is Easy-to-Build#

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, having access to a comprehensive list of passkey providers 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 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#

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), passkey intelligence may continue to try Cross-Device Authentication via QR code, 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.

      This issue is becoming increasingly prevalent due to the passkey management UIs for deleting passkeys introduced by Apple, Android, 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 supports an initial implementation, which should be closely monitored and integrated into the passkey authentication solution as soon as it gets broader support:

passkeys-simplify-sign-in-google.jpg

  • 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 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 [email protected] to [email protected] in the account settings. Then, the user provides the new email address in the email input field [email protected], triggering a passkey login ceremony linked to the old email [email protected], 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 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 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 and #12).

#8 Passkey UX/UI is Great and Predefined#

Okay I get it: developing passkey authentication is technically complex, but once it's implemented, the process becomes quite straightforward, right?

Passkey Icon

  • Passkey icon: The good news is the FIDO alliance 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, 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:
    • 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? 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#

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 like 1Password, KeePassXC or Dashlane) 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, #12). 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 modal appears. Otherwise the regular WebAuthn login process is executed.

Regular Passkey LoginRegular passkey login

Regular Passkey Login Email InputRegular passkey login with filled email address

Regular Passkey Login AuthenticatorConnect 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.

Passkey Login Button

  • Conditional UI Login: Conditional UI, also known as usernameless login, behaves differently depending on the operating system. For example, Safari on iOS 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 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, #11, #12). 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.

Passkey Login Client Hint

The information displayed can be increasingly precise: For example, if a mobile device was used for Cross-Device Authentication, this detail could be included in the message to guide the user to the correct device.

#10 Passkeys Work in All Browsers as Expected#

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 for more details.

While the UI for biometric authentication 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 (e.g. YubiKeys) 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” (the first-party passkey provider), “S21 von Vincent” (a stored device), “Other smartphone, other table or other security key” (CDA or hardware security key) 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?

Create Passkey Safari

Create Passkey Chrome

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. Still, the most crucial aspect is ensuring that every user enjoys a superior login experience with passkeys compared to traditional password-based methods.

Debugger Icon

Want to experiment with passkey flows? Try our Passkeys Debugger.

Try for Free

#11 Passkeys’ Availability Equals Accessibility#

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 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#

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:

macOS Safari QR Code

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 and then get this cryptic popup on their smartphone.

Android no Passkeys Available

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:

WebAuthn Transports Overview

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:

Passkey Login Windows 10 Windows Hello

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).

#13 Passkeys Are Universal and Thus Easily Testable#

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-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 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 ID in your WebAuthn server settings.
  • Authenticator performance decreases with number of test credentials: Testing typically involves setting up passkeys on authenticators and frequently re-registering them, whether it’s because you've flushed the database, changed the Relying Party ID, or simply wish to conduct multiple tests of the passkey creation process. One issue is that some authenticators, 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 format, or deserializing authenticatorData information in CBOR.
  • Native app testing requires a publicly reachable server: If you develop for a native app (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 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 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, or general passkey debugging.

#14 Only Adding Passkeys to an Existing Auth Solution is Easy#

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 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, 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#

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 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.

Passkey Google Trend

Moreover, most consumers cannot tell the difference between websites/apps secured with local biometric authentication (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
  • People using SMS instead of messenger apps like WhatsApp 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. Feel free to also join our Passkeys Community or subscribe to our Passkeys Substack. Let’s make the Internet a safer place together!

Bonus #1: Prepare Your Setup#

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 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

Bonus #2: Passkeys are Only Authentication but You Need More#

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 / 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).
{
"by": "vdelitz",
"descendants": 186,
"id": 40214736,
"kids": [
40243137,
40245069,
40243745,
40243335,
40242327,
40245692,
40242966,
40242809,
40243298,
40243039,
40245084,
40242011,
40242370,
40244847,
40244873,
40242460,
40243383,
40243604,
40245597,
40243547,
40242824
],
"score": 184,
"time": 1714503127,
"title": "Passkey Implementation: Misconceptions, pitfalls and unknown unknowns",
"type": "story",
"url": "https://www.corbado.com/blog/passkey-implementation-pitfalls-misconceptions-unknowns"
}
{
"author": null,
"date": null,
"description": "Read about the challenges, pitfalls and misconceptions we faced while developing our passkey-first authentication solution and passkey intelligence.",
"image": "https://s3.eu-central-1.amazonaws.com/corbado-cloud-staging-website-assets/passkey_misconceptions_cover_2ee93e6380.jpg",
"logo": "https://logo.clearbit.com/corbado.com",
"publisher": "Corbado",
"title": "Why Passkey Implementation is 100x Harder Than You Think – Misconceptions, Pitfalls and Unknown Unknowns",
"url": "https://www.corbado.com/blog/passkey-implementation-pitfalls-misconceptions-unknowns"
}
{
"url": "https://www.corbado.com/blog/passkey-implementation-pitfalls-misconceptions-unknowns",
"title": "Why Passkey Implementation is 100x Harder Than You Think – Misconceptions, Pitfalls and Unknown Unknowns",
"description": "Our mission is to make the Internet a safer place, and the new login standard passkeys provides a superior solution to achieve that. That's why we want to help you understand passkeys and its characteristics...",
"links": [
"https://www.corbado.com/blog/passkey-implementation-pitfalls-misconceptions-unknowns"
],
"image": "https://s3.eu-central-1.amazonaws.com/corbado-cloud-staging-website-assets/passkey_misconceptions_cover_2ee93e6380.jpg",
"content": "<div><p><strong>Our mission is to make the Internet a safer place</strong>, and the new login standard passkeys provides a superior solution to achieve that. That's why we want to help you understand passkeys and its characteristics better.</p>\n<p><em>“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.”</em></p>\n<p>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: <strong>It shouldn’t be too hard. It shouldn’t be too complicated.</strong> 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.</p>\n<p>With this blog post, I want to share with you the learnings on my way when working on a <strong>passkey-first</strong> auth solution and <strong>passkey intelligence</strong> with <a target=\"_blank\" href=\"https://www.corbado.com/\">Corbado</a>. All the <strong>hard truths, the unknown unknowns</strong> (factors that were not anticipated prior to my experience, essentially things we did not know we did not know), and the <strong>misconceptions</strong> should be uncovered, so that you know what to consider when implementing your own passkey-based authentication.</p>\n<p>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.</p>\n<p></p><h2 id=\"tldr\">TL;DR:<span>#</span></h2><p></p>\n<p><em>“Can you add passkeys as new auth solution in our next sprint?”</em> 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. <strong>No more password resets. Higher conversion rates. No more <a target=\"_blank\" href=\"https://www.corbado.com/glossary/phishing\">phishing</a> attacks</strong> (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!).</p>\n<p>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”, “how to implement passkeys”, “passkeys in react” and “passkey libraries”. 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 and then just use the session management that is already in place.</p>\n<p>However, <strong>the more the developer researches the topics, the more things come to his mind</strong>: how do passkeys work 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 be tested on different devices, operating systems and browsers. He realizes that this might not be only a 1-sprint-task.</p>\n<p>This is not an isolated story. Many developers that reached out to us and scratched below the surface of passkeys faced similar challenges. <strong>Implementing passkeys in a real-life project is 100x harder than you might initially think</strong> (trust us – we’ve gone through it).</p>\n<p>Our mission is to help developers implement passkeys. That’s why we created this blog post. So, let’s take a look at the <strong>15 most common misconceptions</strong> when implementing passkeys, so that you know what to take care of.</p>\n<p><a target=\"_blank\" href=\"https://www.corbado.com/blog/passkey-implementation-pitfalls-misconceptions-unknowns#1-creating-passkeys-is-just-triggering-navigatorcredentialscreate\">#1 Creating Passkeys is Just Triggering navigator.credentials.create()</a></p>\n<p><a target=\"_blank\" href=\"https://www.corbado.com/blog/passkey-implementation-pitfalls-misconceptions-unknowns#2-passkeys-logins-are-only-about-when-to-trigger-navigatorcredentialsget\">#2 Passkeys Logins are Only About When to Trigger navigator.credentials.get()</a></p>\n<p><a target=\"_blank\" href=\"https://www.corbado.com/blog/passkey-implementation-pitfalls-misconceptions-unknowns#3-available-passkeys-can-be-detected-from-the-browser\">#3 Available Passkeys can be Detected from the Browser</a></p>\n<p><a target=\"_blank\" href=\"https://www.corbado.com/blog/passkey-implementation-pitfalls-misconceptions-unknowns#4-user-agents-are-great-for-device-recognition\">#4 User Agents are Great for Device Recognition</a></p>\n<p><a target=\"_blank\" href=\"https://www.corbado.com/blog/passkey-implementation-pitfalls-misconceptions-unknowns#5-an-open-standard-like-webauthn-is-easy-to-read\">#5 An Open Standard like WebAuthn is Easy-to-Read</a></p>\n<p><a target=\"_blank\" href=\"https://www.corbado.com/blog/passkey-implementation-pitfalls-misconceptions-unknowns#6-passkey-management-ui-is-easy-to-build\">#6 Passkey Management UI is Easy-to-Build</a></p>\n<p><a target=\"_blank\" href=\"https://www.corbado.com/blog/passkey-implementation-pitfalls-misconceptions-unknowns#7-passkeys-are-new-but-common-use-cases-are-well-supported\">#7 Passkeys are New but Common Use Cases are Well Supported</a></p>\n<p><a target=\"_blank\" href=\"https://www.corbado.com/blog/passkey-implementation-pitfalls-misconceptions-unknowns#8-passkey-uxui-is-great-and-predefined\">#8 Passkey UX/UI is Great and Predefined</a></p>\n<p><a target=\"_blank\" href=\"https://www.corbado.com/blog/passkey-implementation-pitfalls-misconceptions-unknowns#9-conditional-ui-always-ensures-a-smooth-login-experience\">#9 Conditional UI Always Ensures a Smooth Login Experience</a></p>\n<p><a target=\"_blank\" href=\"https://www.corbado.com/blog/passkey-implementation-pitfalls-misconceptions-unknowns#10-passkeys-work-in-all-browsers-as-expected\">#10 Passkeys Work in All Browsers as Expected</a></p>\n<p><a target=\"_blank\" href=\"https://www.corbado.com/blog/passkey-implementation-pitfalls-misconceptions-unknowns#11-passkeys-availability-equals-accessibility\">#11 Passkeys' Availability Equals Accessibility</a></p>\n<p><a target=\"_blank\" href=\"https://www.corbado.com/blog/passkey-implementation-pitfalls-misconceptions-unknowns#12-qr-codes-are-simple-and-appear-only-when-needed\">#12 QR Codes are Simple and Appear only When Needed</a></p>\n<p><a target=\"_blank\" href=\"https://www.corbado.com/blog/passkey-implementation-pitfalls-misconceptions-unknowns#13-passkeys-are-universal-and-thus-easily-testable\">#13 Passkeys Are Universal and Thus Easily Testable</a></p>\n<p><a target=\"_blank\" href=\"https://www.corbado.com/blog/passkey-implementation-pitfalls-misconceptions-unknowns#14-only-adding-passkeys-to-an-existing-auth-solution-is-easy\">#14 Only Adding Passkeys to an Existing Auth Solution is Easy</a></p>\n<p><a target=\"_blank\" href=\"https://www.corbado.com/blog/passkey-implementation-pitfalls-misconceptions-unknowns#15-please-help-me-i-think-i-dont-want-passkeys-anymore\">#15 Please Help Me: I Think I Don't Want Passkeys Anymore</a></p>\n<p></p><h2 id=\"1-creating-passkeys-is-just-triggering-navigatorcredentialscreate\">#1 Creating Passkeys is Just Triggering navigator.credentials.create()<span>#</span></h2><p></p>\n<p><em>I’ve seen this WebAuthn <a target=\"_blank\" href=\"https://www.corbado.com/blog/passkeys-javascript\">JavaScript</a> API where I can simply create a new passkey by calling navigator.credentials.create().</em></p>\n<p><strong>Not really! It’s one of biggest misconception that one API call is enough.</strong> Even though the WebAuthn <a target=\"_blank\" href=\"https://www.corbado.com/blog/passkeys-javascript\">JavaScript</a> API (called with <code>navigator.credentials.create()</code>) 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:</p>\n<ul>\n<li><strong>Implement two backend API endpoints for one simple passkey creation:</strong> 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 <a target=\"_blank\" href=\"https://www.corbado.com/blog/passkeys-javascript\">JavaScript</a> 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.</li>\n<li><strong>Provide fallbacks if passkeys don’t work or the flow is canceled:</strong> 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.</li>\n<li><strong>Verify the user to avoid account take-overs:</strong> 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 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.</li>\n<li><strong>Detect if passkeys are already stored on the device:</strong> It's important to know which devices have passkeys stored and which do not (in order to know where passkey creation / logins can be securely offered to users – more on that later). In the passkey creation case, allowing multiple passkeys per account could lead to major user confusion. We call these decision rules “passkey intelligence”, as a logic around passkeys, users and devices needs to be developed.</li>\n</ul>\n<div><div><div><p><img alt=\"Ben Gould Testimonial\" srcset=\"https://www.corbado.com/_next/image?url=%2Fimages%2Fcorbado-testimonial-image-2.jpg&amp;w=48&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V 1x, https://www.corbado.com/_next/image?url=%2Fimages%2Fcorbado-testimonial-image-2.jpg&amp;w=96&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V 2x\" src=\"https://www.corbado.com/_next/image?url=%2Fimages%2Fcorbado-testimonial-image-2.jpg&amp;w=96&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V\" /></p><div><p>Ben Gould</p><p>Head of Engineering</p></div></div><p>I’ve built hundreds of integrations in my time, including quite a few with identity providers and I’ve never been so impressed with a developer experience as I have been with Corbado.</p></div><div><p>3,000+ devs trust Corbado &amp; make the Internet safer with passkeys. Got questions? We’ve written 150+ blog posts on passkeys.</p><p><a target=\"_blank\" href=\"https://bit.ly/passkeys-community\">Join Passkeys Community</a></p></div></div>\n<ul>\n<li><strong>Support cross-device registration &amp; hardware security keys:</strong> 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 / <a target=\"_blank\" href=\"https://www.corbado.com/glossary/fido2\">FIDO2</a> security keys (e.g. YubiKeys)? If yes, there are some important things to consider for your implementation, that have impact on the <code>PublicKeyCredentialCreationOptions</code> used in navigator.credentials.create():\n<ul>\n<li>Do you want to prioritize cross-device registration / hardware security keys over local passkeys?</li>\n<li>Do you want to offer them as an equal option?</li>\n<li>Do you want to offer them only as a fallback? Should this fallback only be available in logins or also in account sign-ups?</li>\n</ul>\n</li>\n<li><strong>Adapt the backend &amp; database:</strong> Choosing the WebAuthn server (basically a library) is pretty straightforward and so is the installation (e.g. <code>npm install @simplewebauthn/server</code>). But then the real challenge starts:\n<ul>\n<li>How are you going to connect the passkey logic to your system? All passkey detection and 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.</li>\n<li>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 <a target=\"_blank\" href=\"https://www.corbado.com/blog/webauthn-pubkeycredparams-credentialpublickey\">COSE</a> format and <code>authenticatorData</code> is serialized in <a target=\"_blank\" href=\"https://www.corbado.com/blog/webauthn-pubkeycredparams-credentialpublickey\">CBOR</a>). Hopefully, you also have an idea on how to store credential-specific attributes and settings (e.g. <code>transports</code> information or <code>authenticatorAttachments</code>)? 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).</li>\n</ul>\n</li>\n<li><strong>Implement passkey-specific UX:</strong> Creating passkeys is great for UX. But that only counts for the creation process itself when the Face ID 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:\n<ul>\n<li>Consider when to offer the passkey creation: after every successful login with an existing method? Even after a <a target=\"_blank\" href=\"https://www.corbado.com/glossary/social-login\">social login</a> with a Google account?</li>\n<li>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 without any problem?</li>\n<li>Where will users manage their passkeys? Do they use a first-party <a target=\"_blank\" href=\"https://www.corbado.com/blog/passkey-providers\">passkey provider</a> (e.g. <a target=\"_blank\" href=\"https://www.corbado.com/glossary/icloud-keychain\">iCloud Keychain</a> or <a target=\"_blank\" href=\"https://www.corbado.com/glossary/google-password-manager\">Google Password Manager</a>) or a third-party passkey provider (e.g. <a target=\"_blank\" href=\"https://www.corbado.com/blog/dashlane-passkeys\">Dashlane</a>, <a target=\"_blank\" href=\"https://www.corbado.com/blog/1password-passkeys-best-practices-analysis\">1Password</a> or <a target=\"_blank\" href=\"https://www.corbado.com/blog/keepassxc-passkeys\">KeePassXC</a>). All that affects where passkeys can later be used for logins.</li>\n<li>Should users be allowed to add multiple passkeys per device?</li>\n</ul>\n</li>\n</ul>\n<p></p><h2 id=\"2-passkeys-logins-are-only-about-when-to-trigger-navigatorcredentialsget\">#2 Passkeys Logins are Only About When to Trigger navigator.credentials.get()<span>#</span></h2><p></p>\n<p><em>Okay, there’s some more to creating a passkey but to login with a passkey, I simply call the WebAuthn <a target=\"_blank\" href=\"https://www.corbado.com/blog/passkeys-javascript\">JavaScript</a> API via <code>navigator.credentials.get()</code>, as the passkey already exists.</em></p>\n<p><strong>Eh nope. It’s the other way around.</strong> 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 <a target=\"_blank\" href=\"https://www.corbado.com/blog/passkey-implementation-pitfalls-misconceptions-unknowns#3-available-passkeys-can-be-detected-from-the-browser\">#3</a>)! Don’t believe us? Then, take a look the following examples:</p>\n<ul>\n<li><strong>Example 1 “Windows 10 or 11 desktop without Bluetooth”:</strong> A user signs up and creates a passkey on their iPhone with iOS 17. Then, the users uses their desktop that runs on Windows 11. Although Windows 11 supports passkeys, the computer lacks Bluetooth, which is required for <a target=\"_blank\" href=\"https://www.corbado.com/blog/webauthn-passkey-qr-code\">WebAuthn Cross-Device Authentication (CDA) via QR codes</a> (it's a security measure to ensure both devices are in proximity).</li>\n<li><strong>Example 2 “Device-bound passkeys”:</strong> Often, workplace computers run on Windows 10 or Windows 11. Passkeys created on these systems are not synced to other devices (-&gt; <a target=\"_blank\" href=\"https://www.corbado.com/blog/device-bound-synced-passkeys\">device-bound passkeys</a>). Attempts to login with a passkey on another device will fail because the user does not have an alternative passkey on a <a target=\"_blank\" href=\"https://www.corbado.com/blog/webauthn-cross-device-authentication-passkeys-mobile-first\">mobile device for CDA</a>.</li>\n</ul>\n<p>However, the scenario can also reverse:</p>\n<ul>\n<li><strong>Example 3 “Third-party passkey providers”:</strong> Some users might use password managers like <a target=\"_blank\" href=\"https://www.corbado.com/blog/1password-passkeys-best-practices-analysis\">1Password</a>, <a target=\"_blank\" href=\"https://www.corbado.com/blog/keepassxc-passkeys\">KeePassXC</a> or <a target=\"_blank\" href=\"https://www.corbado.com/blog/dashlane-passkeys\">Dashlane</a>, 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 should be permitted. Therefore, you need to know where the passkey was created, whether the current device has the password manager installed and active, and if the passkey is synced, to provide a convenient login experience without locking the user out.</li>\n</ul>\n<p>To ensure a seamless passkey login 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.</p>\n<div><p><img alt=\"Substack Icon\" src=\"https://www.corbado.com/icons/passkey.svg\" /></p><p>Subscribe to our Passkeys Substack for the latest news, insights and strategies.</p><p><a target=\"_blank\" href=\"https://passkeys.substack.com/\">Subscribe</a></p></div>\n<p></p><h2 id=\"3-available-passkeys-can-be-detected-from-the-browser\">#3 Available Passkeys can be Detected from the Browser<span>#</span></h2><p></p>\n<p><em>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 <a target=\"_blank\" href=\"https://www.corbado.com/blog/passkeys-javascript\">JavaScript</a> API, right?</em></p>\n<p><strong>Absolutely not.</strong> 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.</p>\n<p>Let’s understand why available passkeys on a device cannot be detected from the browser. Passkeys and the FIDO Alliance, as the driving force behind them, have a strong <a target=\"_blank\" href=\"https://fidoalliance.org/wp-content/uploads/2014/12/FIDO_Alliance_Whitepaper_Privacy_Principles.pdf\">privacy-by-design</a> 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, 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 <strong>impossible to directly detect whether a passkey already exists on a specific device prior to any WebAuthn operation</strong>:</p>\n<ul>\n<li>Is my device &amp; browser WebAuthn-ready: <code>PublicKeyCredential</code></li>\n<li>Is my device &amp; browser passkey-ready (platforma-<a target=\"_blank\" href=\"https://www.corbado.com/glossary/authenticator\">authenticator</a>-ready): <code>PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable()</code></li>\n<li>Is my device &amp; browser Conditional-UI-ready: <code>PublicKeyCredential.isConditionalMediationAvailable()</code></li>\n</ul>\n<p></p><h2 id=\"4-user-agents-are-great-for-device-recognition\">#4 User Agents are Great for Device Recognition<span>#</span></h2><p></p>\n<p><em>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.</em></p>\n<p><strong>Good idea – might just not work as easy, especially not on all browsers!</strong> After reading through the first fallacies, you might consider implementing a proper device management system (in this context called 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:</p>\n<ul>\n<li><strong>User agents are phased out:</strong> A robust user-agent parsing library is essential to accurately detect the operating system, browser, and device type (mobile or desktop) from the user-agent HTTP header. Unfortunately, this method remains fully effective only for Safari. All other browsers are about to <a target=\"_blank\" href=\"https://www.corbado.com/blog/client-hints-user-agent-chrome-safari-firefox\">phase out the user agent soon</a> (or have already done so).</li>\n<li><strong>Chromium’s user-agent reduction initiative:</strong> Chromium-based browsers (e.g. Chrome, Edge) and Firefox have significantly reduced the level of detail in their user-agent strings as part of their user-agent reduction initiative (primarily to avoid tracking and protect user privacy). To effectively recognize devices using Chrome, Edge or Firefox, the usage of <a target=\"_blank\" href=\"https://www.corbado.com/blog/client-hints-user-agent-chrome-safari-firefox\">client hints</a> (e.g. via <code>navigator.userAgentData.getHighEntropyValues()</code>) 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 <a target=\"_blank\" href=\"https://www.corbado.com/blog/client-hints-user-agent-chrome-safari-firefox\">client hints</a> cannot be retrieved via HTTP headers out-of-the-box.</li>\n</ul>\n<p>Consequently, to provide passkey intelligence for all browsers, you need to support both methods (<a target=\"_blank\" href=\"https://www.corbado.com/blog/client-hints-user-agent-chrome-safari-firefox\">user agent &amp; client hint</a> 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.</p>\n<div><p><img alt=\"Slack Icon\" src=\"https://www.corbado.com/icons/social/slack.svg\" /></p><p>Become part of our Passkeys Community for updates and support.</p><p><a target=\"_blank\" href=\"https://bit.ly/passkeys-community\">Join</a></p></div>\n<p></p><h2 id=\"5-an-open-standard-like-webauthn-is-easy-to-read\">#5 An Open Standard like WebAuthn is Easy-to-Read<span>#</span></h2><p></p>\n<p><em>The WebAuthn specification should facilitate the use of secure and simple authentication. Therefore, it will be probably easy-to-read and understandable.</em></p>\n<p><strong>Nope – unless you are an expert authentication or have a PhD in cyber security.</strong> 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 were the primary method for WebAuthn (and not platform authenticators like Face ID or <a target=\"_blank\" href=\"https://www.corbado.com/glossary/windows-hello\">Windows Hello</a>):</p>\n<ul>\n<li><strong>WebAuthn Level 2 (current version; since April 2021):</strong> 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, 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. <code>requireResidentKey</code> vs. <code>residentKey</code> or recommendations regarding the usage of <a target=\"_blank\" href=\"https://www.corbado.com/glossary/attestation\">attestation</a>).</li>\n<li><strong>WebAuthn Level 3 (expected from the end of 2024 onwards):</strong> The WebAuthn Level 3 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, and macOS) and Google (with Chrome and Android) implement the feature, as they control the majority of the desktop and mobile browser market, along with their respective operating systems.</li>\n</ul>\n<p>To stay up-to-date with the WebAuthn standard and keep pace with the passkey usability of larger platforms (e.g., Android, iOS, macOS, Windows), it is necessary to monitor a variety of input sources besides the existing (and continuously updated) WebAuthn spec:</p>\n<ul>\n<li>Follow the <a target=\"_blank\" href=\"https://github.com/w3c/webauthn/issues\">WebAuthn GitHub issues</a> to anticipate new passkey / WebAuthn features early on and understand why they might or might not be introduced.</li>\n<li>Regularly take a look at <a target=\"_blank\" href=\"https://w3c.github.io/webauthn\">WebAuthn Level 3: Editor's draft</a> commits to see how the standard changes</li>\n<li>Check <a target=\"_blank\" href=\"https://issues.chromium.org/issues?q=status:open%20componentid:1456855&amp;s=created_time:desc\">Chromium feature requests and releases</a> to test new features and adapt your auth solution accordingly</li>\n<li>Review <a target=\"_blank\" href=\"https://bugzilla.mozilla.org/show_bug.cgi\">Mozilla &amp; Webkit issues</a> to test new features and understand browser behavior</li>\n</ul>\n<p>As the passkey / WebAuthn ecosystem is highly heterogeneous, the standard is interpreted and implemented differently. Therefore, depending on the <a target=\"_blank\" href=\"https://www.corbado.com/blog/webauthn-server-implementation\">WebAuthn server library</a> 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:</p>\n<ul>\n<li>Passkeys themselves (especially the sync feature)</li>\n<li><a target=\"_blank\" href=\"https://github.com/w3c/webauthn/wiki/Explainer%3A-WebAuthn-Conditional-UI\">Conditional UI</a></li>\n<li><code>supplementalPubKeys</code></li>\n<li><a target=\"_blank\" href=\"https://github.com/w3c/webauthn/issues/2053\">PublicKeyCredentialHints</a> (to deprecate AuthenticatorAttachment)</li>\n</ul>\n<p></p><h2 id=\"6-passkey-management-ui-is-easy-to-build\">#6 Passkey Management UI is Easy-to-Build<span>#</span></h2><p></p>\n<p><em>Building a passkey management UI and the corresponding functionality to create, edit and delete passkeys should be rather simple.</em></p>\n<p><strong>Yes and no – while building a passkey management UI isn’t too hard there are some things which are rather counter-intuitive.</strong> Industry best practice for managing passkeys is to list all available passkeys for a user in the account settings. Thanks to resources like <a target=\"_blank\" href=\"https://passkeys.dev/\">https://passkeys.dev</a>, having access to a comprehensive list of passkey providers with logos and names is straightforward. It can be used to display passkey-provider-specific information for a passkey. However, managing passkeys involves more:</p>\n<ul>\n<li><strong>Exclude credentials when adding passkeys:</strong> When offering an “Add passkey” button in the account settings, the <code>excludeCredentials</code> <a target=\"_blank\" href=\"https://www.corbado.com/glossary/publickeycredentialrequestoptions\">PublicKeyCredentialRequestOption</a> 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.</li>\n<li><strong>Deleting passkeys server-side could lead to confusion:</strong> 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 <code>AllowCredentials</code> list of the <a target=\"_blank\" href=\"https://www.corbado.com/glossary/publickeycredentialrequestoptions\">PublicKeyCredentialRequestOptions</a> in the authentication ceremony should not be left blank if a passkey was deleted server-side. Instead, <code>AllowCredentials</code> should be filled with all passkeys except the deleted ones. Implementing such a logic requires intelligent passkey management on the server-side.</li>\n</ul>\n<p>In general, we have often received questions about whether the <code>AllowCredentials</code> list should be left empty or filled with credentials. The answer depends on the specific security and operational needs:</p>\n<ul>\n<li><strong>Empty <code>AllowCredentials</code>:</strong> 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.</li>\n<li><strong>Filled <code>AllowCredentials</code>:</strong> Filling the <code>AllowCredentials</code> 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.</li>\n</ul>\n<p>As you see, there is no clear answer to this question and you need to decide based on your specific requirements.</p>\n<p></p><h2 id=\"7-passkeys-are-new-but-common-use-cases-are-well-supported\">#7 Passkeys are New but Common Use Cases are Well Supported<span>#</span></h2><p></p>\n<p><em>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.</em></p>\n<p>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 <strong>fall short on other common real-life cases</strong>:</p>\n<ul>\n<li>\n<p><strong>Use Case 1: Deleting a passkey on the device (client-side):</strong> If the user decides to locally delete the passkey on their device, the server <strong>never receives the information that this passkey cannot be used anymore</strong>. This could lead to serious friction:</p>\n<ul>\n<li>\n<p><strong>Passkey login fails completely:</strong> 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.</p>\n</li>\n<li>\n<p><strong>Confusing QR codes in CDA scenarios:</strong> In this scenario, if a user, for example, deletes their mobile phone passkey from their iPhone (CDA <a target=\"_blank\" href=\"https://www.corbado.com/glossary/authenticator\">authenticator</a>), passkey intelligence may continue to try Cross-Device Authentication via QR code, 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 <a target=\"_blank\" href=\"https://www.corbado.com/blog/passkey-implementation-pitfalls-misconceptions-unknowns#12-qr-codes-are-simple-and-appear-only-when-needed\">#12</a>.</p>\n<p>This issue is becoming increasingly prevalent due to the passkey management UIs for deleting passkeys introduced by Apple, Android, 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.</p>\n</li>\n</ul>\n</li>\n<li>\n<p><strong>Use Case 2: Automatic transition from password-based to passkey-based accounts:</strong> 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, <a target=\"_blank\" href=\"https://www.corbado.com/glossary/google-password-manager\">Google Password Manager</a> supports an initial implementation, which should be closely monitored and integrated into the passkey authentication solution as soon as it gets broader support:</p>\n</li>\n</ul>\n<p><img alt=\"passkeys-simplify-sign-in-google.jpg\" srcset=\"https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fpasskeys_simplify_sign_in_google_afe3398d93.jpg&amp;w=384&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V 1x, https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fpasskeys_simplify_sign_in_google_afe3398d93.jpg&amp;w=750&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V 2x\" src=\"https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fpasskeys_simplify_sign_in_google_afe3398d93.jpg&amp;w=750&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V\" /></p>\n<ul>\n<li><strong>Use Case 3: Change passkey-associated meta data:</strong> When a passkey is created, the following meta data is associated with the passkey and stored on the client:\n<ul>\n<li>\n<p><strong>user.name:</strong> Serves as a visible login identifier, typically an email address, phone number or username.</p>\n</li>\n<li>\n<p><strong>user.displayName:</strong> Represents the readable name of the user, used to personalize <a target=\"_blank\" href=\"https://www.corbado.com/glossary/conditional-ui\">Conditional UI</a> and the passkey modal experience for users.</p>\n<p>This meta data is very helpful for users to distinguish different accounts and passkeys on a device. However, there is a crucial aspect missing: <strong>When a user changes any of this information today, it cannot be reliably updated across all associated passkeys.</strong></p>\n<p>While <code>user.name</code> and <code>user.displayName</code> 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: <code>user.id</code>. 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 <code>[email protected]</code> to <code>[email protected]</code> in the account settings. Then, the user provides the new email address in the email input field <code>[email protected]</code>, triggering a passkey login ceremony linked to the old email <code>[email protected]</code>, 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 <a target=\"_blank\" href=\"https://www.corbado.com/blog/webauthn-conditional-ui-passkeys-autofill\">passkey autofill</a> 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.</p>\n</li>\n</ul>\n</li>\n</ul>\n<p><a target=\"_blank\" href=\"https://www.corbado.com/blog/webauthn-user-id-userhandle\">user.name, user.displayName, user.id, response.userHandle, and Credential ID</a> can be major sources of confusion and errors if not thoroughly understood in the beginning of your passkey implementation.</p>\n<p>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 <a target=\"_blank\" href=\"https://www.corbado.com/blog/passkey-implementation-pitfalls-misconceptions-unknowns#2-passkeys-logins-are-only-about-when-to-trigger-navigatorcredentialsget\">#2</a> and <a target=\"_blank\" href=\"https://www.corbado.com/blog/passkey-implementation-pitfalls-misconceptions-unknowns#12-qr-codes-are-simple-and-appear-only-when-needed\">#12</a>).</p>\n<p></p><h2 id=\"8-passkey-uxui-is-great-and-predefined\">#8 Passkey UX/UI is Great and Predefined<span>#</span></h2><p></p>\n<p><em>Okay I get it: developing passkey authentication is technically complex, but once it's implemented, the process becomes quite straightforward, right?</em></p>\n<p><img alt=\"Passkey Icon\" srcset=\"https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fpasskey_icon_56febc5841.png&amp;w=256&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V 1x, https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fpasskey_icon_56febc5841.png&amp;w=384&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V 2x\" src=\"https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fpasskey_icon_56febc5841.png&amp;w=384&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V\" /></p>\n<ul>\n<li><strong>Passkey icon:</strong> The good news is the <a target=\"_blank\" href=\"https://www.corbado.com/glossary/fido-alliance\">FIDO alliance</a> has created an icon for you.</li>\n<li><strong>Product management decisions:</strong> 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:</li>\n<li><strong>Which devices to support?:</strong> 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.\n<ul>\n<li><strong>When and how should users be verified?:</strong> 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?</li>\n<li><strong>Which mockups do we need to provide?:</strong> Expect that you will need specific mockups for passkey-related flows:\n<ul>\n<li>Sign-up via passkeys or via fallback method (e.g. email OTP)</li>\n<li>Login via passkeys or via fallback method (e.g. email OTP)</li>\n<li>Offer adding passkeys after fallback-login on new devices</li>\n<li>Create understandable error messages</li>\n<li>Design a user-friendly passkey management UI</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><strong>UX/UI best practices:</strong> To provide a really appealing passkey UX/UI, a few more things need to be considered before the rollout:\n<ul>\n<li><strong>Define a passkey introduction strategy:</strong> 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.</li>\n<li><strong>Facilitate transition to passkeys:</strong> There’s a lack of best practices how you can nudge your users, especially non-technical ones, to transition to passkeys, so you need to come up with own strategies and flows.</li>\n<li><strong>Look for UI recommendations:</strong> Choose your best practices from a wide list of partially contradicting guidelines:\n<ul>\n<li><a target=\"_blank\" href=\"https://developers.google.com/identity/passkeys/ux/user-interface-design\">Google</a></li>\n<li><a target=\"_blank\" href=\"https://fidoalliance.org/ux-guidelines/\">FIDO alliance</a></li>\n<li><a target=\"_blank\" href=\"https://web.dev/articles/passkey-google-ux\">web.dev</a></li>\n<li>Real world examples (e.g. <a target=\"_blank\" href=\"https://www.corbado.com/blog/kayak-passkeys-best-practices-analysis\">Kayak</a>, <a target=\"_blank\" href=\"https://www.corbado.com/blog/amazon-passkeys-launch\">Amazon</a>, <a target=\"_blank\" href=\"https://www.corbado.com/blog/github-passkeys-best-practices-analysis\">GitHub</a>)</li>\n</ul>\n</li>\n<li><strong>Define fallback strategy:</strong> How are you handling passkey errors? Are you going to immediately trigger fallback authentication or do you allow re-tries?</li>\n<li><strong>Handle errors and provide troubleshooting guidance:</strong> Have you ever considered what happens when a user is on a modern iPhone with the latest browser but hasn't activated the <a target=\"_blank\" href=\"https://www.corbado.com/glossary/icloud-keychain\">iCloud Keychain</a>? 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.</li>\n</ul>\n</li>\n</ul>\n<p>In conclusion, while passkeys are technically complex to implement, do not underestimate the effort required to address various product management aspects.</p>\n<p></p><h2 id=\"9-conditional-ui-always-ensures-a-smooth-login-experience\">#9 Conditional UI Always Ensures a Smooth Login Experience<span>#</span></h2><p></p>\n<p><em>I love <a target=\"_blank\" href=\"https://www.corbado.com/glossary/conditional-ui\">Conditional UI</a> 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.</em></p>\n<p><strong>Indeed, <a target=\"_blank\" href=\"https://www.corbado.com/glossary/conditional-ui\">Conditional UI</a> provides one of the smoothest login experiences. There are however some things to consider or even improve on top.</strong> 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 <a target=\"_blank\" href=\"https://www.corbado.com/blog/passkey-providers\">passkey provider</a> like 1Password, <a target=\"_blank\" href=\"https://www.corbado.com/blog/keepassxc-passkeys\">KeePassXC</a> or Dashlane) from where they can be used in any future login attempt. Generally, with passkeys, there are three modes to log in:</p>\n<ul>\n<li>\n<p><strong>Regular passkey login with WebAuthn modal (after asking for login identifier first):</strong></p>\n<p>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 <a target=\"_blank\" href=\"https://www.corbado.com/blog/passkey-implementation-pitfalls-misconceptions-unknowns#11-passkeys-availability-equals-accessibility\">#11</a>, <a target=\"_blank\" href=\"https://www.corbado.com/blog/passkey-implementation-pitfalls-misconceptions-unknowns#12-qr-codes-are-simple-and-appear-only-when-needed\">#12</a>). 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 <a target=\"_blank\" href=\"https://www.corbado.com/glossary/authenticator\">authenticator</a> modal appears. Otherwise the regular WebAuthn login process is executed.</p>\n</li>\n</ul>\n<p><img alt=\"Regular Passkey Login\" srcset=\"https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fregular_passkey_login_start_bad15ecc42.png&amp;w=640&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V 1x, https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fregular_passkey_login_start_bad15ecc42.png&amp;w=1080&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V 2x\" src=\"https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fregular_passkey_login_start_bad15ecc42.png&amp;w=1080&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V\" /><em>Regular passkey login</em></p>\n<p><img alt=\"Regular Passkey Login Email Input\" srcset=\"https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fregular_passkey_login_email_input_4129f4523e.png&amp;w=640&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V 1x, https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fregular_passkey_login_email_input_4129f4523e.png&amp;w=1080&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V 2x\" src=\"https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fregular_passkey_login_email_input_4129f4523e.png&amp;w=1080&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V\" /><em>Regular passkey login with filled email address</em></p>\n<p><img alt=\"Regular Passkey Login Authenticator\" srcset=\"https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fregular_passkey_login_authenticator_6e3a8238d3.png&amp;w=640&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V 1x, https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fregular_passkey_login_authenticator_6e3a8238d3.png&amp;w=1080&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V 2x\" src=\"https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fregular_passkey_login_authenticator_6e3a8238d3.png&amp;w=1080&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V\" /><em>Connect to the <a target=\"_blank\" href=\"https://www.corbado.com/glossary/authenticator\">authenticator</a> for login</em></p>\n<ul>\n<li>\n<p><strong>Passkey login button (on top level):</strong></p>\n<p>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.</p>\n</li>\n</ul>\n<p><img alt=\"Passkey Login Button\" srcset=\"https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fpasskey_login_button_8ffd8c7ecd.png&amp;w=384&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V 1x, https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fpasskey_login_button_8ffd8c7ecd.png&amp;w=750&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V 2x\" src=\"https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fpasskey_login_button_8ffd8c7ecd.png&amp;w=750&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V\" /></p>\n<ul>\n<li><strong><a target=\"_blank\" href=\"https://www.corbado.com/glossary/conditional-ui\">Conditional UI</a> Login:</strong> <a target=\"_blank\" href=\"https://www.corbado.com/glossary/conditional-ui\">Conditional UI</a>, also known as usernameless login, behaves differently depending on the operating system. For example, Safari on iOS 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 <code>navigator.credentials.get()</code> call, using the ‘mediation: “conditional”’ flag:</li>\n</ul>\n<figure><pre><div><p><code><span><span>// Availability of `window.PublicKeyCredential` means WebAuthn is usable.</span></span>\n<span><span>if</span><span> (</span></span>\n<span><span> window.PublicKeyCredential </span><span>&amp;&amp;</span></span>\n<span><span> PublicKeyCredential.isConditionalMediationAvailable</span></span>\n<span><span>) {</span></span>\n<span><span> // Check if conditional mediation is available.</span></span>\n<span><span> const</span><span> isCMA</span><span> =</span><span> await</span><span> PublicKeyCredential.</span><span>isConditionalMediationAvailable</span><span>();</span></span>\n<span><span> if</span><span> (isCMA) {</span></span>\n<span><span> // Call WebAuthn authentication</span></span>\n<span><span> const</span><span> publicKeyCredentialRequestOptions</span><span> =</span><span> {</span></span>\n<span><span> // Server generated challenge</span></span>\n<span><span> challenge: </span><span>****</span><span>,</span></span>\n<span><span> // The same RP ID as used during registration</span></span>\n<span><span> rpId: </span><span>\"example.com\"</span><span>,</span></span>\n<span><span> };</span></span>\n<span> </span>\n<span><span> const</span><span> credential</span><span> =</span><span> await</span><span> navigator.credentials.</span><span>get</span><span>({</span></span>\n<span><span> publicKey: publicKeyCredentialRequestOptions,</span></span>\n<span><span> signal: abortController.signal,</span></span>\n<span><span> // Specify 'conditional' to activate conditional UI</span></span>\n<span><span> mediation: </span><span>\"conditional\"</span><span>,</span></span>\n<span><span> });</span></span>\n<span><span> }</span></span>\n<span><span>}</span></span>\n<span> </span></code></p></div></pre></figure>\n<p>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 <a target=\"_blank\" href=\"https://www.corbado.com/glossary/assertion\">assertion</a> 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.</p>\n<p>Well, seeing these different login options sounds very promising so far, <strong>but there are some caveats</strong>. 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 <code>LocalStorage</code> information to optimize the passkey login experience:</p>\n<ul>\n<li><strong>Store recently used passkey hints in <code>LocalStorage</code>:</strong> 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: <a target=\"_blank\" href=\"https://www.corbado.com/blog/passkey-implementation-pitfalls-misconceptions-unknowns#2-passkeys-logins-are-only-about-when-to-trigger-navigatorcredentialsget\">#2</a>, <a target=\"_blank\" href=\"https://www.corbado.com/blog/passkey-implementation-pitfalls-misconceptions-unknowns#11-passkeys-availability-equals-accessibility\">#11</a>, <a target=\"_blank\" href=\"https://www.corbado.com/blog/passkey-implementation-pitfalls-misconceptions-unknowns#12-qr-codes-are-simple-and-appear-only-when-needed\">#12</a>). 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.</li>\n</ul>\n<p><img alt=\"Passkey Login Client Hint\" srcset=\"https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fpasskey_login_client_hint_d6620ce0ee.png&amp;w=640&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V 1x, https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fpasskey_login_client_hint_d6620ce0ee.png&amp;w=828&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V 2x\" src=\"https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fpasskey_login_client_hint_d6620ce0ee.png&amp;w=828&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V\" /></p>\n<p>The information displayed can be increasingly precise: For example, if a mobile device was used for Cross-Device Authentication, this detail could be included in the message to guide the user to the correct device.</p>\n<p></p><h2 id=\"10-passkeys-work-in-all-browsers-as-expected\">#10 Passkeys Work in All Browsers as Expected<span>#</span></h2><p></p>\n<p><em>As passkeys are supported by all major browsers, the behavior and UX should be the same everywhere.</em></p>\n<p><strong>Well no.</strong> In general, for passkeys to work, there are two different things to consider:</p>\n<ol>\n<li><strong>Available passkeys on the login device:</strong> The operating system <strong>and</strong> the browser must support passkeys (moreover the different versions of operating system and browser play an important role). This can be detected using <code>PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable()</code>.</li>\n<li><strong>Passkeys in Cross-Device Authentication or Registration:</strong> Support from the operating system or browser for Cross-Device Authentication is required. Unfortunately, this cannot be detected with <code>PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable()</code>. 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. <code>Bluetooth.getAvailability()</code>- note that even if this function returns true, it does not imply that Bluetooth is activated currently) and provide the right <code>PublicKeyCredentialRequestOptions</code> for the WebAuthn server (both of which can hold their own problems) – see <a target=\"_blank\" href=\"https://www.corbado.com/blog/passkey-implementation-pitfalls-misconceptions-unknowns#4-user-agents-are-great-for-device-recognition\">#4</a> for more details.</li>\n</ol>\n<p>While the UI for <a target=\"_blank\" href=\"https://www.corbado.com/glossary/biometric-authentication\">biometric authentication</a> 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 <code>authenticatorAttachment</code>). 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 (e.g. YubiKeys) could be used. Therefore, we define the following WebAuthn server settings:</p>\n<figure><pre><div><p><code><span><span>\"authenticatorSelection\"</span><span>: {</span></span>\n<span><span> \"residentKey\"</span><span>: </span><span>\"required\"</span><span>,</span></span>\n<span><span> \"requireResidentKey\"</span><span>: </span><span>true</span><span>,</span></span>\n<span><span> \"userVerification\"</span><span>: </span><span>\"required\"</span><span>,</span></span>\n<span><span> \"authenticatorAttachment\"</span><span>: </span><span>\"platform\"</span></span>\n<span><span>}</span></span></code></p></div></pre></figure>\n<p>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.</p>\n<p>In contrast, Chrome (second screenshot) displays a dialog that might be complex to understand for inexperienced users, as you can decide between “<a target=\"_blank\" href=\"https://www.corbado.com/glossary/icloud-keychain\">iCloud Keychain</a>” (the first-party passkey provider), “S21 von Vincent” (a stored device), “Other smartphone, other table or other <a target=\"_blank\" href=\"https://www.corbado.com/glossary/security-key\">security key</a>” (CDA or hardware <a target=\"_blank\" href=\"https://www.corbado.com/glossary/security-key\">security key</a>) 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?</p>\n<p><img alt=\"Create Passkey Safari\" srcset=\"https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fcreate_passkey_safari_805cdeddf9.png&amp;w=750&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V 1x, https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fcreate_passkey_safari_805cdeddf9.png&amp;w=1920&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V 2x\" src=\"https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fcreate_passkey_safari_805cdeddf9.png&amp;w=1920&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V\" /></p>\n<p><img alt=\"Create Passkey Chrome\" srcset=\"https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fcreate_passkey_chrome_8828040db0.png&amp;w=640&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V 1x, https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fcreate_passkey_chrome_8828040db0.png&amp;w=1080&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V 2x\" src=\"https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fcreate_passkey_chrome_8828040db0.png&amp;w=1080&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V\" /></p>\n<p>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).</p>\n<p>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. Still, the most crucial aspect is ensuring that every user enjoys a superior login experience with passkeys compared to traditional password-based methods.</p>\n<div><p><img alt=\"Debugger Icon\" src=\"https://www.corbado.com/icons/passkey.svg\" /></p><p>Want to experiment with passkey flows? Try our Passkeys Debugger.</p><p><a target=\"_blank\" href=\"https://www.passkeys-debugger.io/\">Try for Free</a></p></div>\n<p></p><h2 id=\"11-passkeys-availability-equals-accessibility\">#11 Passkeys’ Availability Equals Accessibility<span>#</span></h2><p></p>\n<p><em>Passkeys are supported by Apple, Google and Microsoft. So, no matter which device I use, I should be able to use them for logins.</em></p>\n<p><strong>That’s only the half truth.</strong> Passkeys are widely adopted by the most popular operating systems and browser (mainly due the backing by Apple, Google &amp; Microsoft that control devices, operating systems and browsers).</p>\n<p>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:</p>\n<ul>\n<li><strong>Are passkeys and / or CDA supported?:</strong> Does the device itself support passkey authentication? If not, does it support WebAuthn Cross-Device Authentication (CDA) via QR codes &amp; Bluetooth?</li>\n<li><strong>Are passkeys available?:</strong> 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 <a target=\"_blank\" href=\"https://www.corbado.com/glossary/icloud-keychain\">iCloud Keychain</a>, or from Macbook to Windows desktop via a password manager like Dashlane)?</li>\n</ul>\n<p>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.</p>\n<p></p><h2 id=\"12-qr-codes-are-simple-and-appear-only-when-needed\">#12 QR Codes are Simple and Appear only When Needed<span>#</span></h2><p></p>\n<p><em>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.</em></p>\n<p><strong>Yes and no.</strong> While Cross-Device Authentication (CDA) and registration with QR codes can be incredibly effective and powerful tools when used correctly, <strong>there is also a significant downside:</strong> QR codes often appear when the browser cannot find the passkeys (on the device) that the server has suggested in the <code>allowCredentials</code> list of the <code>PublicKeyCredentialRequestOptions</code>. 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:</p>\n<p><img alt=\"macOS Safari QR Code\" srcset=\"https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fmacos_safari_qr_code_7f0cc2cc1a.png&amp;w=640&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V 1x, https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fmacos_safari_qr_code_7f0cc2cc1a.png&amp;w=1200&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V 2x\" src=\"https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fmacos_safari_qr_code_7f0cc2cc1a.png&amp;w=1200&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V\" /></p>\n<p>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 and then get this cryptic popup on their smartphone.</p>\n<p><img alt=\"Android no Passkeys Available\" srcset=\"https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fandroid_no_passkey_available_9375739c5e.png&amp;w=640&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V 1x, https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fandroid_no_passkey_available_9375739c5e.png&amp;w=1080&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V 2x\" src=\"https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fandroid_no_passkey_available_9375739c5e.png&amp;w=1080&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V\" /></p>\n<p>We have listed over 40 of the combinations of WebAuthn <code>PublicKeyCredentialRequestOptions</code>, operating systems (+ versions) and browsers (+versions) <a target=\"_blank\" href=\"https://www.corbado.com/blog/webauthn-passkey-qr-code\">here</a> for you. A summary of the different browser behavior can be found below:</p>\n<p><img alt=\"WebAuthn Transports Overview\" srcset=\"https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fwebauthn_transports_overview_afacdd5c65.png&amp;w=640&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V 1x, https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fwebauthn_transports_overview_afacdd5c65.png&amp;w=1080&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V 2x\" src=\"https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fwebauthn_transports_overview_afacdd5c65.png&amp;w=1080&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V\" /></p>\n<p>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 <a target=\"_blank\" href=\"https://www.corbado.com/blog/webauthn-passkey-qr-code#windows-10-21h2-chrome\">authentication process</a> 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:</p>\n<p><img alt=\"Passkey Login Windows 10 Windows Hello\" srcset=\"https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fpasskey_login_windows_10_windows_hello_66967c3809.png&amp;w=1080&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V 1x, https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fpasskey_login_windows_10_windows_hello_66967c3809.png&amp;w=2048&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V 2x\" src=\"https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fpasskey_login_windows_10_windows_hello_66967c3809.png&amp;w=2048&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V\" /></p>\n<p>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 <a target=\"_blank\" href=\"https://www.corbado.com/blog/passkey-implementation-pitfalls-misconceptions-unknowns#11-passkeys-availability-equals-accessibility\">#11</a>).</p>\n<p></p><h2 id=\"13-passkeys-are-universal-and-thus-easily-testable\">#13 Passkeys Are Universal and Thus Easily Testable<span>#</span></h2><p></p>\n<p><em>Nice, passkeys are available on most devices. That should also make testing not a big deal.</em></p>\n<p><strong>Well, that’s not the full story</strong>. Passkeys are great as they introduce the first <a target=\"_blank\" href=\"https://www.corbado.com/glossary/phishing\">phishing</a>-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, <strong>but makes development and testing of passkey-based applications painful</strong>:</p>\n<ul>\n<li><strong>Secure context (https) required for all systems:</strong> Passkeys only work in secure contexts (<code>https</code> is required). This also implies that all testing and staging systems need to be set up to work with https.</li>\n<li><strong>Local testing is complex:</strong> Local testing of passkeys (<code>localhost</code>) 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 <a target=\"_blank\" href=\"https://www.corbado.com/blog/webauthn-relying-party-id-rpid-passkeys\">Relying Party IDs</a> cannot be IP addresses, but need to be domains. Also setting up a tunnel or using a service like <a target=\"_blank\" href=\"https://www.corbado.com/blog/multi-device-passkey-login-corbado-ngrok\">ngrok</a> might be only short-term solution. Each time you get a new <a target=\"_blank\" href=\"https://www.corbado.com/blog/multi-device-passkey-login-corbado-ngrok\">ngrok</a> URL, you need to change the Relying Party ID in your WebAuthn server settings.</li>\n<li><strong><a target=\"_blank\" href=\"https://www.corbado.com/glossary/authenticator\">Authenticator</a> performance decreases with number of test credentials:</strong> Testing typically involves setting up passkeys on authenticators and frequently re-registering them, whether it’s because you've flushed the database, changed the Relying Party ID, or simply wish to conduct multiple tests of the passkey creation process. One issue is that some authenticators, especially on Windows, tend to slow down as the number of passkeys they need to handle increases (e.g., 200+).</li>\n<li><strong>Debugging is cumbersome:</strong> 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 <a target=\"_blank\" href=\"https://www.corbado.com/blog/webauthn-pubkeycredparams-credentialpublickey\">COSE</a> format, or deserializing <code>authenticatorData</code> information in <a target=\"_blank\" href=\"https://www.corbado.com/blog/webauthn-pubkeycredparams-credentialpublickey\">CBOR</a>.</li>\n<li><strong>Native app testing requires a publicly reachable server:</strong> If you develop for a native app (e.g. iOS or Android), new things become important during testing. You need to have the <code>apple-app-site-association</code> file or the <code>assetlinks.json</code> 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 that should share the same passkeys (thus needing to have the same relying party ID).</li>\n</ul>\n<p>While many libraries and code snippets support basic <a target=\"_blank\" href=\"https://www.corbado.com/blog/webauthn-server-implementation\">WebAuthn server implementation</a> and client-side functionality, there is a notable lack of documentation for real-life use cases such as <a target=\"_blank\" href=\"https://www.corbado.com/blog/webauthn-passkey-qr-code\">Cross-Device Authentication</a>, <a target=\"_blank\" href=\"https://www.corbado.com/blog/passkeys-e2e-playwright-testing-webauthn-virtual-authenticator\">end-to-end passkey testing</a>, or general passkey debugging.</p>\n<p></p><h2 id=\"14-only-adding-passkeys-to-an-existing-auth-solution-is-easy\">#14 Only Adding Passkeys to an Existing Auth Solution is Easy<span>#</span></h2><p></p>\n<p><em>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.</em></p>\n<p><strong>That’s sadly not the full story.</strong> 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:</p>\n<ul>\n<li><strong>Adapt the passkey intelligence to fit current database fields and login flows:</strong> 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 <a target=\"_blank\" href=\"https://www.corbado.com/blog/webauthn-conditional-ui-passkeys-autofill\">passkey autofill</a> may be used concurrently (Conditional UI can facilitate the process but sometimes it does not work or email fields are autofilled via LocalStorage).</li>\n<li><strong>Gradual device-, user- or cohort-based rollout:</strong> 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:\n<ul>\n<li>What is the take-rate for passkeys?</li>\n<li>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?</li>\n<li>Can we quickly switch passkey logins off in case of unforeseen events?</li>\n<li>Can we start only with certain devices (e.g. only MacBooks &amp; iPhones), as they are in a more or less closed ecosystem and have high passkey-readiness?</li>\n<li>What are the auth funnel metrics of passkeys and how much better are they than today’s authentication?</li>\n<li>Can we easily add custom rules to exclude certain browser and operating system combinations from passkey authentication if we encounter a problem with them?</li>\n</ul>\n</li>\n<li><strong>Audit logging &amp; KPI reporting:</strong> 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:\n<ul>\n<li>How fast are passkey logins attempts (especially compared to the password-based auth)?</li>\n<li>How many Conditional UI logins do we have?</li>\n<li>What errors are my users facing?</li>\n<li>Are potential errors originating from the backend or the frontend / JavaScript?</li>\n</ul>\n</li>\n</ul>\n<p>The more users there are, the more additional features – such as gradual rollout, 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?).</p>\n<p></p><h2 id=\"15-please-help-me-i-think-i-dont-want-passkeys-anymore\">#15 Please Help Me: I Think I Don’t Want Passkeys Anymore<span>#</span></h2><p></p>\n<p><em>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.</em></p>\n<p>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 <a target=\"_blank\" href=\"https://www.corbado.com/glossary/biometric-authentication\">biometric authentication</a> 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.</p>\n<p><img alt=\"Passkey Google Trend\" srcset=\"https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fpasskey_google_trend_2f5ebcb9d0.png&amp;w=750&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V 1x, https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fpasskey_google_trend_2f5ebcb9d0.png&amp;w=1920&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V 2x\" src=\"https://www.corbado.com/_next/image?url=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Fcorbado-cloud-staging-website-assets%2Fpasskey_google_trend_2f5ebcb9d0.png&amp;w=1920&amp;q=75&amp;dpl=dpl_BDXDdqebhmgvQ3nTpnwEfrr8RT9V\" /></p>\n<p>Moreover, most consumers cannot tell the difference between websites/apps secured with local <a target=\"_blank\" href=\"https://www.corbado.com/glossary/biometric-authentication\">biometric authentication</a> (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 <a target=\"_blank\" href=\"https://www.corbado.com/glossary/icloud-keychain\">iCloud Keychain</a> 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 <a target=\"_blank\" href=\"https://www.corbado.com/glossary/biometric-authentication\">biometric authentication</a> – 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:</p>\n<ul>\n<li>Stationary shops that don't support Apple / Google Pay</li>\n<li>People using SMS instead of messenger apps like <a target=\"_blank\" href=\"https://www.corbado.com/blog/whatsapp-passkeys\">WhatsApp</a> or Telegram</li>\n<li>People unlocking their smartphone with a password instead of biometrics / PIN pattern</li>\n</ul>\n<p>Ultimately, consumers drive market changes, and they are clearly signaling that passkeys are the future.</p>\n<p>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.</p>\n<p>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 <a target=\"_blank\" href=\"https://app.corbado.com/signin#register\">here</a>. Feel free to also join our <a target=\"_blank\" href=\"https://bit.ly/passkeys-community\">Passkeys Community</a> or subscribe to our <a target=\"_blank\" href=\"https://passkeys.substack.com/\">Passkeys Substack</a>. Let’s make the Internet a safer place together!</p>\n<p></p><h2 id=\"bonus-1-prepare-your-setup\">Bonus #1: Prepare Your Setup<span>#</span></h2><p></p>\n<p>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:</p>\n<ol>\n<li>PC with Windows 10 (where Bluetooth can be switched on and off)</li>\n<li>PC with Windows 11 (21H2)</li>\n<li>PC with Windows 11 (22H2+)</li>\n<li>MacBook with macOS &lt;=12 (Monterey or older)</li>\n<li>MacBook with macOS 13+ (Ventura or newer; but not with version 13.6.5 where passkey auth is broken)</li>\n<li>Android with Android &lt;=8 (Oreo or older)</li>\n<li>Android with Android 9+ (Pie or newer)</li>\n<li>iPhone with iOS &lt;=15</li>\n<li>iPhone with iOS 16+</li>\n</ol>\n<p>Moreover, the following resources are required or useful in your passkey development efforts:</p>\n<ul>\n<li><strong>WebAuthn Server</strong>: 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 <a target=\"_blank\" href=\"https://docs.corbado.com/helpful-guides/local-multi-device-testing-with-ngrok\">ngrok</a> - with all the fun that comes with local <a target=\"_blank\" href=\"https://www.corbado.com/blog/webauthn-relying-party-id-rpid-passkeys\">relying party IDs</a>)</li>\n<li><strong><a target=\"_blank\" href=\"https://www.corbado.com/blog/passkey-webauthn-database-guide\">Database Schema</a></strong>: See our introduction guide on databases <a target=\"_blank\" href=\"https://www.corbado.com/blog/passkey-webauthn-database-guide\">here</a>.</li>\n<li><strong>Passkeys Cheat Sheet</strong>: Speed up your development with the <a target=\"_blank\" href=\"https://www.corbado.com/blog/passkeys-cheat-sheet\">most important passkey / WebAuthn know-how</a> from the specification including examples.</li>\n<li><strong>WebAuthn Virtual Authenticator</strong>: <a target=\"_blank\" href=\"https://docs.corbado.com/other/google-chrome-virtual-authenticator\">Browser dev tool</a> to simulate passkey / WebAuthn sign-ups and logins and save time / resources for real authenticators.</li>\n<li><strong>End-2-End Testing Framework</strong>: See <a target=\"_blank\" href=\"https://www.corbado.com/blog/passkeys-e2e-playwright-testing-webauthn-virtual-authenticator\">here</a> how we do it.</li>\n<li><strong>Unit Test Set for Passkey Intelligence</strong>: The test set should cover most use cases (probably at least 50). A good start point is the compatibility matrix from <a target=\"_blank\" href=\"https://passkeys.dev/\">passkeys.dev</a></li>\n</ul>\n<p></p><h2 id=\"bonus-2-passkeys-are-only-authentication-but-you-need-more\">Bonus #2: Passkeys are Only Authentication but You Need More<span>#</span></h2><p></p>\n<p>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.</p>\n<ul>\n<li><strong>Combine passkeys with other auth methods:</strong> 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 <a target=\"_blank\" href=\"https://www.corbado.com/blog/passkeys-single-sign-on-sso\">SSO</a> / SAML along passkeys, which could be another major endeavor.</li>\n<li><strong>Add secure and efficient session management</strong>: 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.</li>\n<li><strong>Introduce authorization, roles &amp; permissions</strong>: 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 <a target=\"_blank\" href=\"https://www.corbado.com/glossary/role-based-access-control\">Role-Based Access Control (RBAC)</a> and Attribute-Based Access Control (ABAC).</li>\n</ul></div>",
"author": "",
"favicon": "https://www.corbado.com/favicon.ico",
"source": "corbado.com",
"published": "",
"ttr": 1746,
"type": "article"
}