Oauth2Interceptor class

Constructors

Oauth2Interceptor({required Dio dio, required Dio oauth2Dio, required String pathRefreshToken, required Oauth2Manager<OAuthInfoMixin?> tokenProvider, required OAuthInfoMixinParse parserJson, String keyRefreshToken = 'refreshToken'})

Properties

dio ↔ Dio
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
keyRefreshToken String
getter/setter pair
oauth2Dio ↔ Dio
getter/setter pair
parserJson OAuthInfoMixinParse
getter/setter pair
pathRefreshToken String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tokenProvider Oauth2Manager<OAuthInfoMixin?>
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onError(DioError error, ErrorInterceptorHandler handler) → void
The callback will be executed on error.
onRequest(RequestOptions options, RequestInterceptorHandler handler) → void
The callback will be executed before the request is initiated.
onResponse(Response response, ResponseInterceptorHandler handler) → void
The callback will be executed on success. If you want to continue the response, call handler.next.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

TAG → const String