1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00

feat(webauthn): perfer creation of a client-side discoverable credential

This commit is contained in:
Tianzhi Jin 2025-05-22 09:12:52 +08:00
parent 225463817c
commit 2a69996a60

View file

@ -105,6 +105,8 @@ func (h *handler) beginRegistration(w http.ResponseWriter, r *http.Request) {
nil, nil,
}, },
webauthn.WithExclusions(credsDescriptors), webauthn.WithExclusions(credsDescriptors),
webauthn.WithResidentKeyRequirement(protocol.ResidentKeyRequirementPreferred),
webauthn.WithExtensions(protocol.AuthenticationExtensions{"credProps": true}),
) )
if err != nil { if err != nil {