From 8825525043737b4e8077fa139c5cb47993d4c9fe Mon Sep 17 00:00:00 2001 From: James Gough Date: Tue, 2 Jul 2024 11:03:09 +0100 Subject: [PATCH] Set require true only when r.key == required --- lib/webauthn_components/registration_component.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/webauthn_components/registration_component.ex b/lib/webauthn_components/registration_component.ex index 617a76a..67d3d92 100644 --- a/lib/webauthn_components/registration_component.ex +++ b/lib/webauthn_components/registration_component.ex @@ -134,7 +134,7 @@ defmodule WebauthnComponents.RegistrationComponent do excludeCredentials: [], id: id, residentKey: resident_key, - requireResidentKey: resident_key in [:required, :preferred], + requireResidentKey: resident_key == :required, rp: %{ id: challenge.rp_id, name: app_name