Module: DeviceRegistrationHelper

Defined in:
app/helpers/device_registration_helper.rb

Instance Method Summary collapse

Instance Method Details

#device_registration_data(current_password_required:, target_path:, webauthn_error:) ⇒ Object



4
5
6
7
8
9
10
# File 'app/helpers/device_registration_helper.rb', line 4

def device_registration_data(current_password_required:, target_path:, webauthn_error:)
  {
    initial_error: webauthn_error && webauthn_error[:message],
    target_path: target_path,
    password_required: current_password_required.to_s
  }
end