fresh 0.6.1
fresh: ^0.6.1 copied to clipboard
An token refresh library for dart. This package exposes the core components that are common to various refresh token implementations (REST, GraphQL, etc...).
0.6.1. #
- fix: guard authenticationStatus emits on whether internal controller is closed
- fix: minor analysis warnings
0.6.0 #
- BREAKING:
FreshMixinnow requires implementingperformTokenRefresh(T? token)for raw refresh logic (#130) - feat: add
FreshMixin.refreshToken()for single-flight token refresh coordination - concurrent refresh attempts share one in-flight operation (#126, #130) - fix: race condition in
setToken()/clearToken()/revokeToken()where concurrenttokengetter reads returned stale values during storage write (#115, #136) - fix:
tokengetter avoids unnecessary microtask gap viaFuture.sync()(#136) - fix:
tokenStoragesetter skips initial storage read whensetToken/clearToken/revokeTokenwas already called (#136)
0.5.0 #
- feat: add
Tokenbase class for token extensibility - feat: add
OAuth2Token.issuedAtfield for token issue date tracking - feat: add
Token.expiresAtgetter for token expiration validation
0.4.4 #
- refactor: minor adjustment to generics in test
- chore(deps): upgrade to mocktail ^1.0.0
0.4.3 #
- fix: wait for initial storage read before returning token
- chore: update copyright year
- chore: add funding to
pubspec.yaml - ci: revamp ci setup
0.4.2 #
- chore: adjust dart sdk constraint to
">=2.12.0 <4.0.0" - chore: use more strict analysis options
0.4.1 #
- chore: upgrade dev dependencies
- upgrade to
mocktail ^0.3.0
- upgrade to
0.4.0 #
- BREAKING: Migrate to Dart 2.12.0 with Null Safety
0.3.0 #
- BREAKING: Remove
Tokeninterface - refactor:
FreshMixininternal implementation improvements
0.2.1 #
- Add
InMemoryTokenStorage - Add
TokenHeaderBuildertypedef
0.2.0 #
- BREAKING: split
diointerceptor into separate package (fresh_dio)package:freshis repurposed to contain core refresh components
0.1.0 #
- Improvements to internal implementation
- Fully Unit Tested
0.0.1 #
Initial Release of the library.
- Includes
FreshClientwith built-in token refresh.