
E-commerce Passkeys Whitepaper. Practical guidance, rollout patterns and KPIs for passkey programs.
Guest checkout passkeys look like the obvious next step for most e-commerce teams that roll out passkeys. Within weeks those teams face the same question: what about the shoppers who never sign in? Guest checkout exists because forced account creation costs orders. In Baymard's latest survey 18% of US shoppers who abandoned an order did so because the site wanted them to create an account. As a result, a large share of orders, often from returning customers, comes from shoppers who are not logged in and who never see the passkey offer after login.
The thank-you page looks like the perfect fix. The shopper has just completed a purchase, typed their email and is in a good mood. One biometric prompt ("Save a passkey for faster checkout next time") would turn a guest into a logged-in customer for every future visit. Our articles on guest checkout vs forced login and how passkeys increase conversion describe the size of that opportunity. This article covers how to take it safely.
The catch is the email. Guest checkout accepts any address without checking it and in many shops that address already belongs to an account. If a passkey created after a guest order is attached to that account, whoever placed the order now holds a credential for it. This article covers:
Guest checkout has always accepted emails that do not belong to the shopper. A typo, a gift ordered under the recipient's address, a family sharing one inbox or a fraudster using a stolen identity all produce orders with someone else's email. Shops live with this today. What a passkey changes depends on how the shop implements the offer:
| Situation | Today, without passkeys | Naive offer: email match decides | Offer with verification (sections 3 and 4) |
|---|---|---|---|
| Order with someone else's email | Confirmation and shipping mails reach the email owner | The person who ordered also holds a login to the owner's account | No passkey becomes usable without the owner's email code or a sign-in |
| Earlier guest orders linked by email | Foreign orders show up in the owner's order history | The person who ordered sees the owner's history, addresses and payment methods | Orders are linked only after verification |
| Post-purchase "save your details" for an existing email | The shop typically asks the shopper to sign in | A silently attached passkey skips that sign-in | Known emails sign in or enter a code first |
| Post-purchase account creation for a new email | Without verification, an account exists in the owner's name | The account also carries the other person's passkey | Account and passkey exist only after the email is verified |
The unverified email is not a new weakness. Today it mostly leads to misdirected mail and mixed-up order histories. Only a naive offer that lets the email decide turns it into a lasting credential on someone else's account. The rest of this article is about the last column: section 3 compares three patterns that verify before a passkey becomes usable and section 4 adds the protections around them.
A guest order looks the same in the checkout UI no matter whose email was typed. On the server it falls into one of three cases and each case carries a different risk.
In all three cases the shop holds an address that nobody has proven to control in this session. The difference is what a passkey would end up bound to: a new account in someone else's name, the real customer's existing account or an account matched through a provider's data.
The attacker needs nothing more than the victim's email address. In their study of account pre-hijacking, Sudhodanan and Paverd assumed exactly that attacker and found at least 35 of 75 popular online services vulnerable to one or more variants. The Microsoft Security Response Center summary names one of them the "trojan identifier": the attacker attaches an identifier of their own to an account before the victim takes it over and uses it later to get back in. A passkey created after a guest order for an email without an account is exactly that. For an email that already has an account, the same shortcut is worse: a direct takeover through an unverified credential binding.
The following sequence shows the attack against a shop that attaches post-purchase passkeys by email match:
Four failure modes follow from the same root cause:
Purchase completion does not change the picture. A successful payment proves only that someone paid. It says nothing about who controls the account behind the email. A gift order, a shared family address or a fraudster testing stolen cards all produce a valid order.
Try passkeys in a live demo.
The common ways to collect passkeys from existing users all assume an authenticated session:
What remains is a regular, user-initiated passkey creation. The design question is what the shop does with the credential once the shopper has created it.
The patterns differ in when the shop verifies a new shopper's email or authorizes a new credential on an existing account.
The thank-you page offers the passkey. When the shopper accepts, the shop sends a one-time
code to the checkout email. The shopper enters it on the same page. For a new customer,
that verifies the address for sign-up. For an existing account, the shop also applies its
usual requirements for adding a credential, including any additional factor. Once those
checks succeed, start WebAuthn registration. For an existing account the shop can now
include its credential IDs in excludeCredentials to avoid creating a duplicate.
Shops that show account status on the thank-you page (section 4.1) can route a known email to an ordinary sign-in instead of a code. The passkey is then added like any append after login.
If the code or the account checks fail, the shop never starts the WebAuthn ceremony, so
nothing is stored on the device. A local leftover is only possible when the device has
already created the passkey and the server then rejects the registration response or
never receives it, for example after a timeout or a closed tab. The passkey then exists in
the credential manager but not on the server. Call signalUnknownCredential with its
credential ID where the browser supports it, so the credential manager removes it (see
section 4.6).
At checkout the shopper chooses to save a passkey. Explain that setup will finish on a later visit. The shop stores the credential as pending. The order is complete and the passkey grants no account access. Five days later, even if the checkout session has expired, the shopper can finish in either of two ways.
The cookie option trades a prompt for a shared-browser risk. Suppose one person saves a passkey on their phone while checking out on a shared laptop. If the account owner signs in on that laptop five days later, the cookie still matches. Automatic activation would authorize the first person's passkey. A shop that needs to cover this case should ask the shopper to use the pending passkey during activation.
The cookie option fits mobile checkouts best. Phones are personal devices that are rarely shared, so the shared-browser case hardly occurs there. Passkey readiness is also highest on mobile, which gives the thank-you offer the biggest adoption potential. A shop can allow cookie activation for mobile checkouts only and ask desktop shoppers to use the pending passkey.
If the email owner completes a separate verified sign-up first, discard the outstanding guest enrollments for that address. When activation itself completes sign-up, keep only the credential used in that attempt.
The pending state has a life cycle of its own and every state needs a defined behavior:
Activation is a one-time change. In the same server operation, check that the enrollment is still pending and unexpired, activate only its credential and consume the enrollment. A recovery or expiry that already invalidated the record also invalidates its cookie.
The shop does not offer passkeys after guest orders at all. It offers them after a successful login, after account recovery, in account settings and in the native app where the customer is already signed in. Guest checkout stays unchanged.
This is the pattern most large e-commerce deployments we analyzed follow today. eBay shows its passkey prompt after the first password login and KAYAK offers passkeys in the account settings. Our overview of e-commerce authentication covers the 19 of 50 leading B2C brands that support passkeys, many of which also offer guest checkout.
| Criterion | A: Verify, then create | B: Pending, activate later | C: Authenticated flows only |
|---|---|---|---|
| Steps on the thank-you page | Offer, code, biometric | Offer, biometric | None |
| Reaches guests who never sign in | Yes | Yes, once they return | No |
| Credential of unknown ownership stored | Never | Until activation or expiry | Never |
| Backend changes | Code step before registration | Pending state, activation, expiry, cleanup | None |
| First passkey login | Passkey only | Account checks if still pending | Passkey only |
| Reveals whether an account exists | Only with an account-aware offer | Only with an account-aware offer | No |
"Biometric" is a simplification here: it stands for the local user verification on the device, which can also be a device PIN or pattern. The biometric never leaves the device. Section 4.1 explains when an account-aware offer is acceptable and which mitigations it needs.
None of the three is the right answer for every shop. Pattern A suits shops with fast, reliable email delivery and a short thank-you page. Pattern B suits shops where the thank-you page has to stay a single tap and returning guests come back often enough to activate. Pattern C is the right default when guest orders are a small share or when the team cannot yet build the verification step safely. Section 5 shows how to decide with your own data.
Igor Gjorgjioski
Senior Product Lead, VicRoads
We hit 80% mobile passkey activation across 5M+ users without replacing our IDP.
See how VicRoads scaled passkeys to 5M+ users, alongside their existing IDP.
Read the case studyAccount enumeration means that a response tells an outsider whether an email belongs to an account. Banks and other regulated services usually treat that as unacceptable. The OWASP Authentication Cheat Sheet asks for identical responses for existing and new users, covering text, response timing and redirect targets alike.
E-commerce usually decides differently. The email-first login described in our article on guest checkout vs forced login, used by brands like Wayfair, Amazon and Nike, shows a password field for known emails and a guest flow for new ones. It reveals account status on purpose because recognizing returning customers lifts conversion. Against that baseline the thank-you page adds little: each probe there costs the attacker an order, while the login form answers for free.
A shop therefore has two legitimate designs:
The account-aware offer is an accepted risk only with mitigations built in:
excludeCredentials with the account's
credential IDs to an unauthenticated guest. It would prevent a duplicate on the same
device, but it tells anyone who types the email that the account has passkeys and how
many. Our article on
passkey login and account enumeration
explains why credential ID lists in unauthenticated responses are a signal.Patterns A and B send codes to an email that nobody has verified yet. That endpoint can be abused to send mail to arbitrary addresses or to flood a customer's inbox. Protect it like any other code-sending endpoint:
When sending an enrollment code, tie it to one credential enrollment and to the session that requested it. A customer who signs in on their own phone with an ordinary login code must leave a pending passkey in somebody else's browser inactive. The same applies when the customer clicks a link in an order confirmation.
For email verification, the diagram shows what happens when a customer receives an unexpected message:
Accept the code or link only in the session completing that enrollment. Signing in or clicking a confirmation link in an unrelated session must leave the pending credential inactive.
The cookie route in section 3.2 needs a cookie that only the shop can issue and that
proves one thing: this browser started this enrollment. Set it server-side as a
host-only cookie with Secure, HttpOnly and SameSite=Lax. Its value is a random
reference to the server-side enrollment record. A signed JWT can carry the reference too,
but the signature only protects it from tampering.
A signature does not make the cookie device-bound. HttpOnly keeps page scripts from
reading it, but infostealer malware that copies the browser's cookie store can replay it
in another browser. Like any session cookie it is a
bearer token: anyone holding it can
present it. In practice it is browser-bound, so the customer has to come back in the same
browser on the same device. Real device binding needs
Device Bound Session Credentials (DBSC),
which Chrome supports on Windows and is rolling out on macOS, but not on mobile, where the
cookie route fits best.
The design therefore never lets the cookie decide alone:
The WebAuthn Level 3 specification
requires the user handle (user.id) to be free of personally identifying information
such as an email address and recommends 64 random bytes stored with the account. A user
handle derived from the email would let anyone who knows the email create a credential
that carries the same handle as the real account.
The user handle also decides what happens when a customer who already has a passkey for the account saves another one after a guest order on the same device:
signalAllAcceptedCredentials and signalCurrentUserDetails work per handle. Our
article on WebAuthn user ID and user handle covers
the trade-offs of user handle design.A separate handle per pending passkey adds complexity that few shops need. The simpler path is to avoid the duplicate before it is created:
excludeCredentials stops the duplicate.Pattern B stores credentials of unknown ownership, so it needs explicit limits:
Pending passkeys are also a UX problem. They sit in the credential manager and in the passkey picker before they work and after expiry they are dead entries. While pending, that is intended: selecting the passkey at sign-in starts activation (route 1 in section 3.2). After expiry the WebAuthn Signal API can clean up:
signalUnknownCredential with
its credential ID, so the credential manager removes it.signalAllAcceptedCredentials for that user handle without the
expired credential. With the account's own user handle the list must contain all of
the account's active credentials, otherwise working passkeys disappear as well.The clean-up is best effort. Chrome and Edge from version 132, Chrome for Android from version 144 and Safari 26 with iCloud Keychain support the calls, Firefox does not. The API returns no feedback and the removal methods have known issues on Apple platforms, which our Signal API article lists. Where the calls are not supported the dead passkey stays until the customer deletes it.
The visible label matters as well. user.name and user.displayName appear in the
credential manager. For a pending passkey, the email typed at checkout is an unverified
value chosen by whoever placed the order. A neutral label such as the shop name plus
"customer account" avoids showing an unverified address and can be updated with
signalCurrentUserDetails after activation.
Many shops attach earlier guest orders to an account once an account exists for the same email. Do this only after the email was verified in the session that holds the passkey. Order history contains names, delivery addresses and purchase patterns, which is exactly the data an account squatter is looking for.
Express checkout with a wallet or a payment provider returns an email address with the order. That address is what the provider stores for the payer. Unless the provider documents that it verified the address and you accept that verification for binding a credential to an account, treat it like any other unverified email. The pre-hijacking study calls the account-level version of this mistake the "non-verifying IdP" attack: trusting an identity source that never verified the email it hands over.
Account recovery and password resets are where the real owner takes back control. Remove all pending passkeys at that moment, show the customer every active passkey on the account and let them remove unknown ones. The MSRC recommendations for password resets make the same point for sessions and linked identifiers.
See how many people actually use passkeys.
The value of each pattern depends on how orders split across checkout paths. Before building a verification step, measure four groups:
As the figure shows, Pattern C reaches only signed-in orders. If they already dominate, the extra work of A or B buys little. If guest orders with known emails make up a large share, that segment usually justifies the verification step.
The order mix tells you how many shoppers each flow carries. It does not tell you where they get lost. Map every flow step by step and measure the conversion from each step to the next, per device type:
Every arrow is a drop-off point. The ones that decide between the patterns are the login step for signed-in orders, the acceptance rate of the thank-you offer, the code step of Pattern A and the return visit of Pattern B. A flow with a high login drop-off makes Pattern C weak, because the shoppers who abandon at login never see the append prompt. A flow with a low offer acceptance makes every pattern weak, which is a copy and timing problem before it is an architecture problem.
Measuring this requires data that sits on both sides of the login: the checkout path from the commerce platform and the authentication outcome from the identity stack. Login-only analytics see only the orders that went through the login, so guest and express orders stay invisible. Our article on e-commerce funnel analysis shows how to split the funnel by path.
Track the enrollment funnel per pattern and per checkout path, not as one blended rate:
| Step | Pattern A | Pattern B |
|---|---|---|
| Offer shown | Thank-you page views with offer | Thank-you page views with offer |
| Offer accepted | Taps on the offer | Taps on the offer |
| Verification | Codes sent, codes entered | Checks completed, by activation route |
| Credential | Passkeys created | Pending passkeys created |
| Usable | Equal to created | Activated before expiry |
| Value | Passkey logins in the next 90 days | Passkey logins in the next 90 days |
Three numbers deserve extra attention:
Subscribe to our Passkeys Substack for the latest news.
Use this list before a guest passkey offer goes live:
Corbado Connect adds passkeys on top of an existing identity provider, so accounts, sessions and checkout data stay with the shop. Its components cover the post-login and post-recovery append flows of Pattern C and can be placed after the verification step of Pattern A, while the shop's backend decides which account a verified passkey belongs to.
See Passkey Enrollment in Corbado Observe →To decide between the patterns with data, Corbado Observe, the authentication observability layer, measures from the client side how often passkey offers are shown and how often passkeys are created, split into conditional, automatic and manual creation.
Offering passkeys after guest checkout can bring returning shoppers into a logged-in checkout. A new customer can finish sign-up by verifying the checkout email. An existing customer must meet the account's normal requirements for adding a passkey. In both cases the shop authorizes one specific enrollment.
Pick the pattern from your checkout flows. Verify-then-create gets everything done in one visit, a pending passkey keeps the thank-you page at one tap and authenticated-only enrollment avoids the problem at the cost of reach. Whichever you choose, decide consciously how much account status the offer reveals, protect the code endpoint, keep user handles random and measure each step per checkout path.
Yes. Verify a new shopper's email before the passkey becomes usable. For an existing account, require the same authorization as adding a passkey in account settings. A shop can finish enrollment at checkout or keep the credential pending and activate that specific passkey on a later visit.
Guest checkout accepts any email address without checking it. Anyone who knows a customer's email can place a guest order with it. If a passkey created after that order is attached to the existing account, the attacker gets a permanent credential on the victim's account. If no account exists yet, the attacker can set one up in the victim's name with their own passkey before the victim signs up, an attack researchers call account pre-hijacking.
No. Chrome and Safari only allow conditional passkey creation right after the user signed in with a password saved in their password manager. A guest checkout involves no password sign-in, so the post-purchase offer has to be a regular, user-initiated passkey creation.
Only if the offer differs for known emails. A shop that must hide account status shows every guest the same offer, sends the same code message to every address and decides which account the passkey belongs to only after the code is entered. Many e-commerce shops already reveal known emails through email-first login and accept that risk for conversion. They can show an account-aware offer such as "Sign in to save a passkey" if they add bot protection, rate-limit offers and code requests and never send an account's credential IDs to an unauthenticated guest.
It depends on the user handle. If the new passkey uses the account's user handle, the
credential manager replaces the existing passkey for that account, so the customer keeps
one passkey that needs activation. With a new user handle, the customer ends up with two
passkeys for the same shop. The simplest way to avoid both is to let known customers sign
in first, so excludeCredentials prevents the duplicate. If two passkeys exist after
activation, keep both and let the customer remove one in the passkey management.
Related Articles
Table of Contents