wiseclient library
Barrel file for base client.
Classes
- BaseErrorInterceptor
- Class BaseErrorInterceptor to catch and handle errors returned by dio
- OAuth2Token
- Standard OAuth2Token as defined by https://www.oauth.com/oauth2-servers/access-tokens/access-token-response/ with added support for the issue date.
- Options
-
The configuration for a single request.
BaseOptionsand Options will be merged into oneRequestOptionsbefore sending the requests. See Options.compose. - WiseClient
-
A networking client that extends
Dio - WiseOptions
-
Overrides
BaseOptionswith Wisemen base options
Enums
- AuthenticationStatus
- Enum representing the current authentication status of the application.
- WiseInterceptor
- WiseInterceptor enum to list the available interceptor options
Extensions
-
OAuth2TokenFromMap
on Map<
String, dynamic> - Extension to parse an OAuth2Token from a decoded json Map
Functions
-
getFreshInterceptor(
{required Future< OAuth2Token> refreshFunction(OAuth2Token?, Dio), ShouldRefreshBeforeRequest<OAuth2Token> ? shouldRefreshBeforeRequest, TokenStorage<OAuth2Token> ? tokenStorage, Dio? httpClient}) → Fresh<OAuth2Token> -
Creates a
Freshinterceptor to refresh oauth tokens
Exceptions / Errors
- DioException
- DioException describes the exception info when a request failed.
- RevokeTokenException
-
An Exception that should be thrown in
FreshMixin.performTokenRefreshif the refresh fails and should result in a force-logout. - TokenParseException
- TokenParseException is thrown when a stored token can't be parsed
- UnknownException
-
UnknownException wraps a non-Dio error thrown by a
w-prefixed request