Skip to main content

Biometric authentication

During the previous registration and authentication operations, you passed an option, userVerification, and you set it to discouraged. This basically tells the device that it shouldn't perform any additional authentication before using the passkey. If the user is signed into the device and it's unlocked, that's good enough.

Now change the option to preferred and try authenticating again

const result = await authenticatePasskey({ ... userVerification: 'preferred' })
Docusaurus themed imageDocusaurus themed image

Assuming your device has biometric capabilities e.g. Touch ID on a Macbook you should now be prompted to authenticate using biometrics. If the device or browser doesn't have biometric capabilities you may instead be prompted to enter a device passcode.

Not working?

Your device and browser must support biometrics (and passkeys). Most do, but some don't.

Learn more

Please see the section about user verification.