Method: HasSecurePasskey::OptionsForCreate#message

Defined in:
lib/has_secure_passkey/options_for_create.rb

#messageObject



20
21
22
23
24
25
# File 'lib/has_secure_passkey/options_for_create.rb', line 20

def message
  self.class.verifier.generate(
    { challenge:, options:,
      authenticatable: authenticatable.as_json(only: %i(email_address webauthn_id)) }.as_json
  )
end