AuthTwoFactorChallengeRecord class

Persisted state for a pending two-factor sign-in.

Constructors

AuthTwoFactorChallengeRecord({required String id, required String tokenHash, required String userId, required DateTime createdAt, required DateTime expiresAt, AuthUser? user, String? providerId, AuthCredentials? credentials, int failedVerificationCount = 0, DateTime? lockedUntil, DateTime? completedAt})
Creates persisted state for a pending two-factor sign-in.

Properties

completedAt → DateTime?
Completion time, or null while the challenge is pending.
final
createdAt → DateTime
Time at which the challenge was created.
final
credentials → AuthCredentials?
Credentials carried from the first authentication step, when available.
final
expiresAt → DateTime
Time at which the challenge expires.
final
failedVerificationCount → int
Number of failed verification attempts.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Stable identifier for this challenge.
final
lockedUntil → DateTime?
Temporary lockout expiry after too many failed attempts.
final
providerId → String?
Provider that supplied the first authentication step, when applicable.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tokenHash → String
Digest of the opaque challenge token.
final
user → AuthUser?
User record carried from the first authentication step, when available.
final
userId → String
User who must complete the challenge.
final

Methods

copyWith({int? failedVerificationCount, DateTime? lockedUntil, DateTime? completedAt}) → AuthTwoFactorChallengeRecord
Creates a record with selected attempt state replaced.
isActive({DateTime? now}) → bool
Returns whether the challenge is pending and unexpired.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited