Class: PasskeysRails::BeginRegistration

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

Instance Method Summary collapse

Instance Method Details

#callObject



7
8
9
10
11
# File 'app/interactors/passkeys_rails/begin_registration.rb', line 7

def call
  agent = create_or_replace_unregistered_agent

  context.options = WebAuthn::Credential.options_for_create(user: { id: agent.webauthn_identifier, name: agent.username })
end