infrastructure/network/dio_client_factory library

Functions

buildAuthenticatedDio({required BaseOptions baseOptions, required NullParamsInterceptor nullParamsInterceptor, required Fresh<AuthTokenModel> fresh, required AppExceptionMappingInterceptor exceptionMappingInterceptor, required AuthFailureInterceptor authFailureInterceptor, required ReportingInterceptor reportingInterceptor, required PrettyDioLogger prettyDioLogger, List<String> allowedSHA256Fingerprints = SecurityConstants.allowedSHA256Fingerprints}) Dio
Builds the authenticated Dio client, for protected routes.
buildPublicDio({required BaseOptions baseOptions, required NullParamsInterceptor nullParamsInterceptor, required AppExceptionMappingInterceptor exceptionMappingInterceptor, required ReportingInterceptor reportingInterceptor, required PrettyDioLogger prettyDioLogger, List<String> allowedSHA256Fingerprints = SecurityConstants.allowedSHA256Fingerprints}) Dio
Builds the public (unauthenticated) Dio client, for routes like login and register.
buildRefreshDio({required BaseOptions baseOptions, required PrettyDioLogger prettyDioLogger, List<String> allowedSHA256Fingerprints = SecurityConstants.allowedSHA256Fingerprints}) Dio
Builds the dedicated Dio client used only for token-refresh calls.