token_refresh_strategy library

Classes

TokenRefreshStrategy
The TokenRefreshStrategy interface defines the contract for handling the token refresh process. It includes methods for refreshing the token, determining if a token should be refreshed, and getting authorization headers.
TokenRefreshStrategyImpl
The TokenRefreshStrategyImpl class provides a concrete implementation of the TokenRefreshStrategy interface, defining the strategy for refreshing tokens.

Typedefs

TokenExtractor = String? Function(Response response)
A function type for extracting a token from a Response.
TokenRefreshHandler = Future<Response> Function(Dio dio, String refreshToken)
A function type for handling token refresh.