class WebAuthn::CredentialOptions

Constants

CHALLENGE_LENGTH

Public Instance Methods

challenge() click to toggle source
# File lib/webauthn/credential_options.rb, line 9
def challenge
  @challenge ||= SecureRandom.random_bytes(CHALLENGE_LENGTH)
end
timeout() click to toggle source
# File lib/webauthn/credential_options.rb, line 13
def timeout
  @timeout = WebAuthn.configuration.credential_options_timeout
end