AuthJwtVersionStore class abstract interface

Persistence contract for per-user JWT session versions.

A JWT carries the version returned by current. Rotating the version invalidates every previously issued JWT for that user without requiring the application to enumerate or persist the individual 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

current(String userId) → FutureOr<int>
Returns the current version for userId. New users start at version 0.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rotate(String userId) → FutureOr<int>
Atomically advances and returns the current version for userId.
toString() → String
A string representation of this object.
inherited

Operators

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