MCPcopy Create free account
hub / github.com/QLHazyCoder/FlowPilot / shouldClearPreLoginCookie

Function shouldClearPreLoginCookie

background.js:5678–5684  ·  view source on GitHub ↗
(cookie)

Source from the content-addressed store, hash-verified

5676}
5677
5678function shouldClearPreLoginCookie(cookie) {
5679 const domain = normalizeCookieDomainForMatch(cookie?.domain);
5680 if (!domain) return false;
5681 return PRE_LOGIN_COOKIE_CLEAR_DOMAINS.some((target) => (
5682 domain === target || domain.endsWith(`.${target}`)
5683 ));
5684}
5685
5686function buildCookieRemovalUrl(cookie) {
5687 const host = normalizeCookieDomainForMatch(cookie?.domain);

Callers 1

Calls 1

Tested by

no test coverage detected