From 1eb58fffbf5d2ba39ed0079aa26d40dd9a2d1bce Mon Sep 17 00:00:00 2001 From: EzraRT Date: Thu, 7 May 2026 16:24:32 +0800 Subject: [PATCH] fix(webauthn): fix webauthn key option during registration to impl discoverable key --- server/handles/webauthn.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/handles/webauthn.go b/server/handles/webauthn.go index b2a0fbfb4..6848020fd 100644 --- a/server/handles/webauthn.go +++ b/server/handles/webauthn.go @@ -133,7 +133,10 @@ func BeginAuthnRegistration(c *gin.Context) { return } - options, sessionData, err := authnInstance.BeginRegistration(user) + options, sessionData, err := authnInstance.BeginRegistration( + user, + webauthn.WithResidentKeyRequirement(protocol.ResidentKeyRequirementRequired), + ) if err != nil { common.ErrorResp(c, err, 400)