Method: HasSecurePasskey::OptionsForCreate.from_message

Defined in:
lib/has_secure_passkey/options_for_create.rb

.from_message(message) ⇒ Object



7
8
9
10
11
# File 'lib/has_secure_passkey/options_for_create.rb', line 7

def from_message(message)
  new(**verifier.verify(message).symbolize_keys).tap do
    _1.authenticatable.symbolize_keys! if _1.authenticatable.is_a?(Hash)
  end
end