Skip to content

Commit

Permalink
Set require true only when r.key == required
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceful-james committed Jul 2, 2024
1 parent fcc4c4d commit 8825525
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/webauthn_components/registration_component.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8825525

Please sign in to comment.