InMemoryAuthVerificationTokenStore class

In-memory token store for development and tests.

Implemented types

Constructors

InMemoryAuthVerificationTokenStore({DateTime clock()?, int maxTokens = 1024})
Creates a bounded store using clock for expiry checks.

Properties

hashCode int
The hash code for this object.
no setterinherited
maxTokens int
Maximum number of token digests retained by this local store.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

captureDeletionState() Object
Captures all records for rollback by a deletion transaction.
override
consume(String identifier, String token) Future<AuthVerificationToken?>
Atomically consumes a matching unexpired token at most once.
override
delete(String identifier) Future<void>
Deletes every stored token for the exact identifier.
override
deleteToken(String identifier, String token) Future<bool>
Deletes the matching digest for the exact identifier and token.
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(AuthVerificationToken token) Future<void>
Saves token as a digest while preserving its expiry and metadata.
override
toString() String
A string representation of this object.
inherited

Operators

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