InMemoryAuthVerificationTokenStore class
In-memory token store for development and tests.
Constructors
- InMemoryAuthVerificationTokenStore({DateTime clock()?, int maxTokens = 1024})
-
Creates a bounded store using
clockfor expiry checks.
Properties
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
identifierandtoken.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
tokenas 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