You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lib/api_service.dart(26,41): error G4127D1E8: The getter 'requestInterceptors' isn't defined for the class 'Interceptors'. [C:\Users\LENOVO E490\Apps\voicepally_app\build\windows\x64\flutter\flutter_assemble.vcxproj]
here is the code:
String getCsrfToken() {
var cookieManager = _dio.interceptors.requestInterceptors
.firstWhere((interceptor) => interceptor is CookieManager) as CookieManager;
var cookies = cookieManager.cookieJar.loadForRequest(Uri.parse(baseUrl)) as List;
var csrfCookie = cookies.firstWhere(
(cookie) => cookie.name == 'csrftoken',
orElse: () => Cookie('csrftoken', ''));
return csrfCookie.value;
}
The text was updated successfully, but these errors were encountered:
lib/api_service.dart(26,41): error G4127D1E8: The getter 'requestInterceptors' isn't defined for the class 'Interceptors'. [C:\Users\LENOVO E490\Apps\voicepally_app\build\windows\x64\flutter\flutter_assemble.vcxproj]
here is the code:
String getCsrfToken() {
var cookieManager = _dio.interceptors.requestInterceptors
.firstWhere((interceptor) => interceptor is CookieManager) as CookieManager;
var cookies = cookieManager.cookieJar.loadForRequest(Uri.parse(baseUrl)) as List;
var csrfCookie = cookies.firstWhere(
(cookie) => cookie.name == 'csrftoken',
orElse: () => Cookie('csrftoken', ''));
return csrfCookie.value;
}
The text was updated successfully, but these errors were encountered: