authenticatedDioProvider top-level property
Provides an instance of Dio with interceptors set to authenticate all requests called with this dio instance
Implementation
final authenticatedDioProvider =
Provider.family.autoDispose<Dio, RuutParameters>((ref, params) {
final authenticatedDio = Dio(BaseOptions(baseUrl: params.baseUrl));
final interceptor = ref.read(ruutClientApiInterceptorProvider(params));
authenticatedDio.interceptors.add(interceptor);
return authenticatedDio;
});