DVAuthTokenRecord class
One issued token, as stored.
Constructors
- DVAuthTokenRecord({required String identifier, required String hash, required DateTime expiresAt, int attempts = 0})
-
const
Properties
- attempts → int
-
Wrong attempts so far, which is what throttling counts.
final
- expiresAt → DateTime
-
final
- hash → String
-
The hash of the secret. The secret itself is never stored, so a dump of
this table does not let anyone sign in.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- identifier → String
-
Who the token is for — an e-mail, a phone number, a user id.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
withAttempt(
) → DVAuthTokenRecord
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited