Class: Booth::Models::Authenticator

Inherits:
ApplicationRecord show all
Defined in:
lib/booth/models/authenticator.rb

Overview

A WebAuthn Passkey.

Instance Method Summary collapse

Instance Method Details

#confirmed?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/booth/models/authenticator.rb', line 25

def confirmed?
  confirmed_at.present?
end

#generate_webauth_idObject



21
22
23
# File 'lib/booth/models/authenticator.rb', line 21

def generate_webauth_id
  self.webauthn_id = ::WebAuthn.generate_user_id
end

#stepObject



29
30
31
# File 'lib/booth/models/authenticator.rb', line 29

def step
  ::Booth::Core::Authenticators::Step.call(self)
end