Persistence boundary for single-use password-reset tokens.
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
-
consume(
String token) → FutureOr< AuthPasswordResetToken?> - Atomically consumes a raw reset token, returning its metadata once.
-
deleteForUser(
String userId) → FutureOr< void> -
Invalidates all outstanding reset tokens for
userId. -
findActive(
String token) → FutureOr< AuthPasswordResetToken?> - Returns active token metadata without consuming or extending it.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
save(
AuthPasswordResetToken token) → FutureOr< void> -
Stores
token, invalidating any older reset token for the same user. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited