Class: WebAuthn::CredentialOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/webauthn/credential_options.rb

Constant Summary collapse

CHALLENGE_LENGTH =
32

Instance Method Summary collapse

Instance Method Details

#challengeObject



9
10
11
# File 'lib/webauthn/credential_options.rb', line 9

def challenge
  @challenge ||= SecureRandom.random_bytes(CHALLENGE_LENGTH)
end

#timeoutObject



13
14
15
# File 'lib/webauthn/credential_options.rb', line 13

def timeout
  @timeout = WebAuthn.configuration.credential_options_timeout
end