Class: WebAuthn::CredentialOptions
- Inherits:
-
Object
- Object
- WebAuthn::CredentialOptions
show all
- Defined in:
- lib/webauthn/credential_options.rb
Constant Summary
collapse
- CHALLENGE_LENGTH =
32
Instance Method Summary
collapse
Instance Method Details
#challenge ⇒ Object
9
10
11
|
# File 'lib/webauthn/credential_options.rb', line 9
def challenge
@challenge ||= SecureRandom.random_bytes(CHALLENGE_LENGTH)
end
|
#timeout ⇒ Object
13
14
15
|
# File 'lib/webauthn/credential_options.rb', line 13
def timeout
@timeout = WebAuthn.configuration.credential_options_timeout
end
|