Rename request options to authentication options

This commit is contained in:
Stanko K.R.
2026-03-25 16:28:47 +01:00
parent df7c2678f3
commit 693415bc71
7 changed files with 28 additions and 28 deletions
@@ -6,7 +6,7 @@ class Sessions::PasskeysController < ApplicationController
rate_limit to: 10, within: 3.minutes, only: :create, with: :rate_limit_exceeded
def create
if credential = ActionPack::Passkey.authenticate(passkey_request_params)
if credential = ActionPack::Passkey.authenticate(passkey_authentication_params)
start_new_session_for credential.holder
respond_to do |format|
+1 -1
View File
@@ -8,7 +8,7 @@ class SessionsController < ApplicationController
layout "public"
def new
@request_options = passkey_request_options
@authentication_options = passkey_authentication_options
end
def create
+1 -1
View File
@@ -22,7 +22,7 @@
</button>
<% end %>
<%= passkey_sign_in_button "Sign in with a passkey", session_passkey_path, options: @request_options, mediation: "conditional", class: "btn btn--link center txt-medium", hidden: true %>
<%= passkey_sign_in_button "Sign in with a passkey", session_passkey_path, options: @authentication_options, mediation: "conditional", class: "btn btn--link center txt-medium", hidden: true %>
</div>