Menu

Passkeys for B2B SaaS: what changes when your users belong to companies
📰

Passkeys for B2B SaaS: what changes when your users belong to companies

DEV Community: authentication·Michay Kalika·3 days ago
#5s1QQ4ek
Long article (2008 words) — no AI summary yet.
Reading 0:00
15s threshold

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

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.