TokenRefreshStrategy class abstract
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.
- Implementers
Constructors
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
-
getAuthorizationHeaders(
String accessToken) → Map< String, String> - Gets the authorization headers using the provided access token.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refreshToken(
Dio dio, TokenManager tokenManager) → Future< String?> -
Refreshes the token using the provided
Dio
instance and TokenManager. -
shouldRefreshToken(
Response response) → bool -
Determines if the token should be refreshed based on the given
Response
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited