+
+
+ cookie property +
final
+
+ The cookie is necessary for some GET requests that require an +authenticated user.
+Implementation
+final String? cookie;
+diff --git a/file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_model_login_status/LoginStatus-class-sidebar.html b/file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_model_login_status/LoginStatus-class-sidebar.html index 1d5b62897e..69f14ddf2f 100644 --- a/file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_model_login_status/LoginStatus-class-sidebar.html +++ b/file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_model_login_status/LoginStatus-class-sidebar.html @@ -9,6 +9,7 @@
factory LoginStatus.fromJson(Map<String, dynamic> json) => LoginStatus(
+ factory LoginStatus.fromJson(Map<String, dynamic> json,
+ [Map<String, String>? headers]) =>
+ LoginStatus(
status: JsonObject.parseInt(json['status'])!,
statusVerbose: json['status_verbose'] as String,
userId: json['user_id'] as String?,
userEmail: json['user']?['email'] as String?,
userName: json['user']?['name'] as String?,
+ cookie: headers?['set-cookie'],
);
The cookie is necessary for some GET requests that require an +authenticated user.
+final String? cookie;
+final String? cookie;
+