sync_refresh library

Synchronized token refresh for Dio.

Parallel 401s trigger exactly one refresh; failed requests are replayed once with the fresh token; a dead refresh tears the session down through a single callback.

Classes

MemoryTokenStore
A trivial in-memory store — handy for tests and examples.
SyncRefresh
Coordinates token refresh for a Dio client.
TokenStore
Storage-agnostic token access.