Skip to main content

wiseclient 3.0.0 copy "wiseclient: ^3.0.0" to clipboard
wiseclient: ^3.0.0 copied to clipboard

A http client based on Dio with extra features and a few interceptors for basic functionality.

3.0.0 #

  • Breaking: Removed OAuthToken. Use OAuth2Token from fresh
  • Breaking: OAuthToken.fromSnakeCase and OAuthToken.fromCamelCasing are replaced by map.toOAuth2TokenFromSnakeCase() and map.toOAuth2TokenFromCamelCase().
  • Breaking: Removed the unused LogoutException. Throw RevokeTokenException from refreshFunction to log the user out
  • Breaking: fresh, setFreshToken, removeFreshToken and authenticationStatus throw a StateError on a client created without WiseInterceptor.fresh, instead of reading and changing the shared stored token
  • Breaking: interceptorsToAdd now run before the wise interceptors
  • Breaking: Replaced the tokenStorage parameter with fresh. Pass one client's fresh to the others to share a session; for custom storage, pass getFreshInterceptor(refreshFunction: ..., tokenStorage: ...)
  • Fixed refresh calls and retried requests ignoring the client's adapter, base url and timeouts (withCredentials on web, useNativeAdapter, connect timeout)
  • Fixed refreshed tokens not being persisted when refreshFunction returned an OAuth2Token
  • Fixed requests hanging when the stored token could not be read; it is now deleted and reported to the zone as a TokenParseException
  • Updated flutter_secure_storage to 11.x

2.1.1 #

  • Fixed constructor function parameters for web and native

2.1.0 #

  • Removed error screens
  • Changed web support to WASM

2.0.4 #

  • Removed synchronizable from iOS options in FreshSecureTokenStorage
  • Updated packages

2.0.3 #

  • Added issuedAt to mappers

2.0.2 #

  • Added RevokeTokenException to exports

2.0.1 #

  • Added AuthenticationStatus to exports

2.0.0 #

  • Breaking change: Removed fresh fork
  • Needs migration: FreshSecureTokenStorage
    • Added iOS options for KeychainAccessibility.first_unlock
    • Use tokenStorage in client creation to achieve migration (or handle separately)

1.1.3-prerelease.3 #

  • Add a wiseclient skill

1.1.3-prerelease.2 #

  • Pass refreshBuffer through createClient

1.1.3-prerelease.1 #

  • Updated dependencies

1.1.3-prerelease.0 #

  • Make sure refresh calls have better support for concurrent calls
  • Refresh tokens before call occurs
  • Add 10 second hard cache before doing new refresh call

1.1.2-prerelease.0 #

  • Updated Flutter Secure storage

1.1.1 #

  • Bugfix: workaround for BrowserHttpAdapter issue
  • Updated packages

1.1.0 #

  • Added option to add permanent headers to client
  • Bugfix: Header options in client base (duplicate header)
  • Updated packages

1.0.8 #

  • Updated secure storage package and reverted workaround for efficiency

1.0.7 #

  • Changed secure storage read because of breaking bug on iOS

1.0.6 #

  • Updated packages

1.0.5 #

  • Updated dio package

1.0.4 #

  • Replaced pretty_dio_logger with talker_dio_logger

1.0.3 #

  • Changes for pub.dev analysis

1.0.2 #

  • Added repository link and homepage

1.0.1 #

  • Formatting/added example

1.0.0 #

  • Initial version
  • Basic request overrides with added functionality
  • Extended dio client with possibility to add interceptors
7
likes
160
points
322
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A http client based on Dio with extra features and a few interceptors for basic functionality.

Homepage
Repository (GitHub)

License

MIT (license)

Dependencies

dio, flutter, flutter_secure_storage, fresh, fresh_dio, native_dio_adapter, talker_dio_logger

More

Packages that depend on wiseclient