Module: Devise::Passkeys::Controllers::SessionsControllerConcern

Extended by:
ActiveSupport::Concern
Defined in:
lib/devise/passkeys/controllers/sessions_controller_concern.rb

Instance Method Summary collapse

Instance Method Details

#new_challengeObject



22
23
24
25
26
27
28
# File 'lib/devise/passkeys/controllers/sessions_controller_concern.rb', line 22

def new_challenge
  options_for_authentication = generate_authentication_options(relying_party: relying_party)

  store_challenge_in_session(options_for_authentication: options_for_authentication)

  render json: options_for_authentication
end