Skip to content

Commit

Permalink
fixes #68
Browse files Browse the repository at this point in the history
  • Loading branch information
dagnelies committed Aug 7, 2024
1 parent 9860ef1 commit c72d17c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export async function register(options: RegisterOptions): Promise<RegistrationJS
authenticatorSelection: {
userVerification: options.userVerification,
authenticatorAttachment: getAuthAttachment(options.hints),
residentKey: options.discoverable,
residentKey: options.discoverable ?? 'preferred', // see https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredentialCreationOptions#residentkey
requireResidentKey: (options.discoverable === 'required') // mainly for backwards compatibility, see https://www.w3.org/TR/webauthn/#dictionary-authenticatorSelection
},
attestation: "direct"
Expand Down

0 comments on commit c72d17c

Please sign in to comment.