setStoredCookies static method

Future setStoredCookies(
  1. String hostname,
  2. CookieJar cookies
)

Associates the hostname with the given cookies into the cache.

Implementation

static Future setStoredCookies(String hostname, CookieJar cookies) async {
  var hostnameHash = Common.hashStringSHA256(hostname);
  await Common.storageSet('cookies-$hostnameHash', cookies);
}