Skip to content

Commit 0a7c812

Browse files
committed
fix: follow chrome webauthn best practice recommendation
1 parent 1a93b2f commit 0a7c812

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

driver/config/config.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"encoding/json"
88
"fmt"
99
"io"
10+
"github.com/duo-labs/webauthn/protocol"
1011
"net"
1112
"net/http"
1213
"net/url"
@@ -1008,6 +1009,9 @@ func (p *Config) WebAuthnConfig() *webauthn.Config {
10081009
RPID: p.p.String(ViperKeyWebAuthnRPID),
10091010
RPOrigin: p.p.String(ViperKeyWebAuthnRPOrigin),
10101011
RPIcon: p.p.String(ViperKeyWebAuthnRPIcon),
1012+
AuthenticatorSelection: protocol.AuthenticatorSelection{
1013+
UserVerification: protocol.VerificationDiscouraged,
1014+
},
10111015
}
10121016
}
10131017

0 commit comments

Comments
 (0)