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 tokenHeader closure and the refreshToken callback (TokenRefresher.refresh) into a single, independently testable unit — rather than constructing Fresh inline in DI setup.