infrastructure/network/auth_fresh_factory library
Functions
-
buildAuthFresh(
{required Dio refreshDio, required TokenStorage< AuthTokenModel> tokenStorage, required AppLogger logger}) → Fresh<AuthTokenModel> -
Builds the Fresh token-refresh wrapper used by the authenticated Dio
client, bundling both the
tokenHeaderclosure and therefreshTokencallback (TokenRefresher.refresh) into a single, independently testable unit — rather than constructing Fresh inline in DI setup.