← Identity & Payments
WebAuthn / Passkeys
Probing…WebAuthn / Passkeys is a web platform capability in the Identity & Payments category. Passwordless sign-in with platform authenticators and passkeys. Supported in Chromium 67+, Firefox 60+, and Safari 13+. Requires a secure context (HTTPS or localhost) and a user gesture such as a click or tap.
Secure contextUser gesture
Try it
Loading demo…
Code
const publicKey = {
challenge: crypto.getRandomValues(new Uint8Array(32)),
rp: { name: 'shwcs.net demo' },
user: { id: crypto.getRandomValues(new Uint8Array(16)), name: 'demo', displayName: 'Demo' },
pubKeyCredParams: [{ type: 'public-key', alg: -7 }, { type: 'public-key', alg: -257 }],
authenticatorSelection: { userVerification: 'preferred' },
}
const credential = await navigator.credentials.create({ publicKey })
console.log(credential.id, credential.type)Browser support
Chromium
67
Firefox
60
Safari
13
Frequently asked questions
Which browsers support WebAuthn / Passkeys?
Supported in Chromium 67+, Firefox 60+, and Safari 13+.
Does WebAuthn / Passkeys require HTTPS?
Yes. WebAuthn / Passkeys needs a secure context, so it only works over HTTPS (or on localhost during development).
What is WebAuthn / Passkeys used for?
Passwordless sign-in with platform authenticators and passkeys.
Can I try WebAuthn / Passkeys in my browser?
Yes. shwcs.net runs a live WebAuthn / Passkeys demo that probes your current browser and lets you try the API. Everything runs locally — nothing is sent anywhere.