Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions lib/webauthn/relying_party.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ def verify_authentication(
# DEPRECATED: This method will be removed in future.
def origin
warn(
"DEPRECATION WARNING: `WebAuthn.origin` is deprecated and will be removed in future. "\
"Please use `WebAuthn.allowed_origins` instead "\
"that also allows configuring multiple origins per Relying Party"
"DEPRECATION WARNING: `WebAuthn.origin` is deprecated and returns `nil` " \
"when `WebAuthn.allowed_origins` contains more than one origin. " \
"It will be removed in future. Please use `WebAuthn.allowed_origins` instead."
)

allowed_origins.first if allowed_origins&.size == 1
Expand All @@ -137,8 +137,8 @@ def origin=(new_origin)
return if new_origin.nil?

warn(
"DEPRECATION WARNING: `WebAuthn.origin` is deprecated and will be removed in future. "\
"Please use `WebAuthn.allowed_origins` instead "\
"DEPRECATION WARNING: `WebAuthn.origin=` is deprecated and will be removed in future. "\
"Please use `WebAuthn.allowed_origins=` instead "\
"that also allows configuring multiple origins per Relying Party"
)

Expand Down
Loading