TokenStore class abstract

Storage-agnostic token access.

Implement with whatever you already use — flutter_secure_storage on mobile, a database on the server. The interceptor only ever talks to this interface.

Implementers

Constructors

TokenStore()

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

clear() → Future<void>
Called when the refresh failed — clear whatever you persisted.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readAccess() → Future<String?>
readRefresh() → Future<String?>
toString() → String
A string representation of this object.
inherited
write({required String access, String? refresh}) → Future<void>
refresh may be null when the backend did not rotate it.

Operators

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