pub fn load_cookies(cookie_path: &str) -> Result<(String, String)>Expand description
Loads authentication cookies from a JSON file.
The file should be in the browser cookie export format:
[
{ "name": "__Secure-1PSID", "value": "..." },
{ "name": "__Secure-1PSIDTS", "value": "..." }
]Cookie names are matched case-insensitively.
§Arguments
cookie_path- Path to the JSON cookie file
§Returns
A tuple of (secure_1psid, secure_1psidts) values
§Errors
Returns an error if the file is not found, invalid JSON, or missing required cookies.