In a B2B app, a passkey belongs to a user who belongs to a company, so the company's rules decide who gets one. Users whose tenant enforces SSO should go to their identity provider; everyone else can use passkeys, and enrollment policy, recovery and offboarding have to be decided per tenant, not once for the whole app.
This post shows how to build that with standard tools (Express and SimpleWebAuthn ), then how Frontegg handles the same rules. Disclosure: I work at Frontegg.
Passkeys in 30 seconds
Registration: the user's device creates a key pair for your domain. Your server stores only the public key and a credential ID.
Sign-in: your server sends a random challenge. The user unlocks the passkey with a biometric or PIN, and the device signs the challenge.
Verification: your server checks the signature against the stored public key.
The browser only offers a passkey to the domain it was created for, which is why passkeys resist phishing. All of this comes from the WebAuthn spec .…