Class: PasskeysRails::BeginChallenge

Inherits:
Object
  • Object
show all
Includes:
Interactor
Defined in:
app/interactors/passkeys_rails/begin_challenge.rb

Instance Method Summary collapse

Instance Method Details

#callObject



7
8
9
10
11
12
13
14
15
16
# File 'app/interactors/passkeys_rails/begin_challenge.rb', line 7

def call
  result = generate_challenge!

  options = result.options

  context.response = options
  context.cookie_data = cookie_data(options)
rescue Interactor::Failure => e
  context.fail! code: e.context.code, message: e.context.message
end