Skip to content

Commit

Permalink
fix: timeout config not propagating (#188)
Browse files Browse the repository at this point in the history
The timeout config for registration when using User Verification Discouraged was not set correctly.
  • Loading branch information
james-d-elliott committed Dec 1, 2023
1 parent d984a4e commit 1fc32f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webauthn/registration.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (webauthn *WebAuthn) BeginRegistration(user User, opts ...RegistrationOptio
if creation.Response.Timeout == 0 {
switch {
case creation.Response.AuthenticatorSelection.UserVerification == protocol.VerificationDiscouraged:
creation.Response.Timeout = int(webauthn.Config.Timeouts.Registration.Timeout.Milliseconds())
creation.Response.Timeout = int(webauthn.Config.Timeouts.Registration.TimeoutUVD.Milliseconds())
default:
creation.Response.Timeout = int(webauthn.Config.Timeouts.Registration.Timeout.Milliseconds())
}
Expand Down

0 comments on commit 1fc32f2

Please sign in to comment.