Skip to content

Commit 6faf6e7

Browse files
authored
fix: user verification on passkey creation
The UV value was hardcoded, but is now read from the configuration.
1 parent 2a1f259 commit 6faf6e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/flow_api/services/webauthn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ func (s *webauthnService) GenerateCreationOptionsPasskey(p GenerateCreationOptio
302302
authenticatorSelection := protocol.AuthenticatorSelection{
303303
RequireResidentKey: &requireResidentKey,
304304
ResidentKey: protocol.ResidentKeyRequirementRequired,
305-
UserVerification: protocol.VerificationRequired,
305+
UserVerification: protocol.UserVerificationRequirement(s.cfg.Passkey.UserVerification),
306306
}
307307

308308
attestationPreference := protocol.ConveyancePreference(s.cfg.Passkey.AttestationPreference)

0 commit comments

Comments
 (0)