Skip to content

Commit

Permalink
fix: disable user verification
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cpb8010 committed Nov 18, 2024
1 parent 3fdc3c4 commit dfb6493
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/sdk/src/client/actions/passkey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dfb6493

Please sign in to comment.