refresh_interceptor 0.1.0 copy "refresh_interceptor: ^0.1.0" to clipboard
refresh_interceptor: ^0.1.0 copied to clipboard

Reusable Dio interceptor for attaching access tokens, refreshing them once, and retrying failed requests.

0.1.0 #

  • Initial release with token injection, single-flight refresh, request retry, refresh-token rotation, and session-expiry handling.
  • Simplified setup with RefreshInterceptor.attachTo and attachToAll.
  • Added shared refresh state across multiple Dio clients.
  • Added TokenStoreAdapter for existing storage method tear-offs.
  • Added automatic new-session detection and safe duplicate attachment.
  • Preserved non-auth errors returned by retried requests.
0
likes
0
points
352
downloads

Publisher

verified publisherpinz.dev

Weekly Downloads

Reusable Dio interceptor for attaching access tokens, refreshing them once, and retrying failed requests.

License

unknown (license)

Dependencies

dio

More

Packages that depend on refresh_interceptor