InMemoryAuthPasswordResetTokenStore class

In-memory password-reset token store for tests and local development.

Implemented types

Constructors

InMemoryAuthPasswordResetTokenStore({DateTime clock()?})
Creates an in-memory store using clock for expiry checks.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

captureDeletionState() Object
Captures the stored records for rollback by a deletion transaction.
override
consume(String token) Future<AuthPasswordResetToken?>
Atomically consumes a matching active raw reset token.
override
deleteForUser(String userId) Future<void>
Deletes all reset records whose stored user ID equals userId.
override
findActive(String token) Future<AuthPasswordResetToken?>
Finds active metadata for token without consuming it.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
restoreDeletionState(Object state) → void
Restores a snapshot produced by captureDeletionState.
override
save(AuthPasswordResetToken token) Future<void>
Saves token, replacing any prior record for its exact user ID.
override
toString() String
A string representation of this object.
inherited

Operators

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