From ccb9f7b3d13f591c8bb19c4da3ce27cf428ec2a9 Mon Sep 17 00:00:00 2001 From: Colin Date: Mon, 18 Nov 2024 09:16:24 -0800 Subject: [PATCH] fix: disable user verification We have a user who is getting this error even when it defaults to preferred, and we're discouraging it in other places. Also attempting to block Winodws Hello before hasn't been successful, as Chrome thinks we should be able to support it. --- packages/sdk/src/client/actions/passkey.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/sdk/src/client/actions/passkey.ts b/packages/sdk/src/client/actions/passkey.ts index 5efa55da..c63cafa6 100644 --- a/packages/sdk/src/client/actions/passkey.ts +++ b/packages/sdk/src/client/actions/passkey.ts @@ -40,7 +40,9 @@ export const generatePasskeyRegistrationOptions = async (args: GeneratePasskeyRe // See "Guiding use of authenticators via authenticatorSelection" below authenticatorSelection: { residentKey: "required", + userVerification: "discouraged", }, + supportedAlgorithmIDs: [-7], // only supports ES256 (no windows hello) }; const params: GenerateRegistrationOptionsOpts = Object.assign({}, defaultOptions, args); const options = await generateRegistrationOptions(params);