juice_auth_network 0.1.2
juice_auth_network: ^0.1.2 copied to clipboard
Integration glue between juice_auth and juice_network — wires AuthBloc into FetchBloc for token injection, 401 refresh, and per-user cache isolation.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.1.1 - 2026-06-09 #
Fixed #
- Widen the
juice_networkconstraint from^0.11.0to^0.12.0— the old pin excluded the publishedjuice_network0.12.0, so released consumers couldn't resolve the two together. Verified against 0.12.0 (analyze clean, 8 tests).
0.1.0 - 2026-05-28 #
Added #
- Initial release — integration glue between
juice_authandjuice_network. AuthBlocIdentityProvider— feedsFetchBloc.authIdentityProviderfromAuthBlocfor per-user cache/coalescing isolation.AuthBlocAuthInterceptor— anAuthInterceptorthat injects the current access token fromAuthBlocstate.AuthBlocRefreshInterceptor— aRefreshTokenInterceptorthat drivesAuthBloc's singleflight refresh on 401 and retries with the new token.AuthBlocRefreshStrategy— the stream-watching bridge that triggersAuthBloc.refreshToken()and resolves when the refresh completes (or fails with session expiry).- Example app demonstrating login, token injection, and refresh, built with Juice primitives only (AuthBloc, FetchBloc, a ProfileBloc feature bloc, and StatelessJuiceWidget).