Class: StandardId::Passwordless::VerificationService::Result
- Inherits:
-
Data
- Object
- Data
- StandardId::Passwordless::VerificationService::Result
- Defined in:
- lib/standard_id/passwordless/verification_service.rb
Overview
Result object returned by .verify.
-
success?: true/false
-
account: the resolved account (nil on failure)
-
challenge: the consumed CodeChallenge (nil on failure)
-
error: human-readable error message string (nil on success)
-
error_code: machine-readable symbol (nil on success) One of :invalid_code, :expired, :max_attempts, :not_found, :blank_code, :account_not_found, :server_error
-
attempts: nil on success, 0 when no challenge was found (fabricated target), or 1+ for wrong-code failures against an active challenge
Instance Attribute Summary collapse
-
#account ⇒ Object
readonly
Returns the value of attribute account.
-
#attempts ⇒ Object
readonly
Returns the value of attribute attempts.
-
#challenge ⇒ Object
readonly
Returns the value of attribute challenge.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#success? ⇒ Object
readonly
Returns the value of attribute success?.
Instance Attribute Details
#account ⇒ Object (readonly)
Returns the value of attribute account
14 15 16 |
# File 'lib/standard_id/passwordless/verification_service.rb', line 14 def account @account end |
#attempts ⇒ Object (readonly)
Returns the value of attribute attempts
14 15 16 |
# File 'lib/standard_id/passwordless/verification_service.rb', line 14 def attempts @attempts end |
#challenge ⇒ Object (readonly)
Returns the value of attribute challenge
14 15 16 |
# File 'lib/standard_id/passwordless/verification_service.rb', line 14 def challenge @challenge end |
#error ⇒ Object (readonly)
Returns the value of attribute error
14 15 16 |
# File 'lib/standard_id/passwordless/verification_service.rb', line 14 def error @error end |
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code
14 15 16 |
# File 'lib/standard_id/passwordless/verification_service.rb', line 14 def error_code @error_code end |
#success? ⇒ Object (readonly)
Returns the value of attribute success?
14 15 16 |
# File 'lib/standard_id/passwordless/verification_service.rb', line 14
def success?
@success?
end
|