getStoredCookies static method
Get the CookieJar
for the given hostname
, or an empty CookieJar
if the hostname
is not in the cache.
Implementation
static Future<CookieJar> getStoredCookies(String hostname) async {
var hostnameHash = Common.hashStringSHA256(hostname);
var cookies = await Common.storageGet('cookies-$hostnameHash');
return cookies ?? CookieJar();
}