AuthInterceptor constructor
AuthInterceptor({
- required TokenManager tokenManager,
- required DioProvider dioProvider,
- String authHeaderKey = 'Authorization',
- String tokenFormatter(
- String token
- bool shouldRefreshToken(
- int? statusCode
Implementation
AuthInterceptor({
required this.tokenManager,
required this.dioProvider,
this.authHeaderKey = 'Authorization',
this.tokenFormatter = _defaultTokenFormatter,
this.shouldRefreshToken,
});