Skip to content

Commit

Permalink
Update RelyingParty documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Vuta committed Sep 20, 2022
1 parent 314d922 commit a160f9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/advanced_configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Intead of the [Global Configuration](../README.md#configuration) you place in `c
relying_party = WebAuthn::RelyingParty.new(
# This value needs to match `window.location.origin` evaluated by
# the User Agent during registration and authentication ceremonies.
origin: "https://admin.example.com"
origin: "https://admin.example.com",

# Relying Party name for display purposes
name: "Admin Site for Example Inc."
Expand Down Expand Up @@ -71,7 +71,7 @@ if !user.webauthn_id
user.update!(webauthn_id: WebAuthn.generate_user_id)
end

options = relying_party.options_for_create(
options = relying_party.options_for_registration(
user: { id: user.webauthn_id, name: user.name },
exclude: user.credentials.map { |c| c.webauthn_id }
)
Expand Down

0 comments on commit a160f9a

Please sign in to comment.