(cookie)
| 5676 | } |
| 5677 | |
| 5678 | function 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 | |
| 5686 | function buildCookieRemovalUrl(cookie) { |
| 5687 | const host = normalizeCookieDomainForMatch(cookie?.domain); |
no test coverage detected