docs/advanced_configuration.md in webauthn-3.0.0.alpha2 vs docs/advanced_configuration.md in webauthn-3.0.0

- old
+ new

@@ -19,11 +19,11 @@ ```ruby 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." # Optionally configure a client timeout hint, in milliseconds. @@ -69,10 +69,10 @@ # Generate and store the WebAuthn User ID the first time the user registers a credential 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 } ) # Store the newly generated challenge somewhere so you can have it