The Cookie Store API exposes HTTP cookies to service workers and offers an asynchronous alternative to document.cookie.
Today, cookies have extremely high usage, however the interface to cookies have been a source of complexity and performance issues. The Cookie Store API aims to improve this by providing an asynchronous alternative to document.cookie and exposing HTTP cookies to service workers which will also come with performance benefits. Its interface also encourages developers to make better decisions about security.
Docs: https://developers.google.com/web/updates/2018/09/asynchronous-access-to-http-cookies https://docs.google.com/document/d/1ak6JzOMMO5q3dXvu4mHFWR-LLvaDc09XDvdeJZLtZd4/
Samples: https://wicg.github.io/cookie-store/explainer.html https://github.com/web-platform-tests/wpt/tree/master/cookie-store
Explainers: https://github.com/WICG/cookie-store/blob/main/explainer.md