Skip to content

Commit 301d2da

Browse files
committed
Resolve deprecation warning for ruby-webauthn
The new version 3.4.0 allows multiple origins, but otherwise does not require any adjustments.
1 parent 8bb0a65 commit 301d2da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/initializers/webauthn.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
end
1515
# If this origin doesn't match the request origin, the request will fail.
1616
# In that case, a `WebAuthn::OriginVerificationError` will be raised.
17-
config.origin = Rails.application.routes.url_helpers.root_url.chomp('/')
17+
config.allowed_origins = [Rails.application.routes.url_helpers.root_url.chomp('/')]
1818

1919
# Relying Party name for display purposes
2020
config.rp_name = ApplicationHelper::APPLICATION_NAME

0 commit comments

Comments
 (0)