MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / isMultiPartTLD

Function isMultiPartTLD

packages/auth/parse-cookie-domain.ts:26–33  ·  view source on GitHub ↗
(potentialTLD: string)

Source from the content-addressed store, hash-verified

24}
25
26function isMultiPartTLD(potentialTLD: string): boolean {
27 if (MULTI_PART_TLDS.some((pattern) => pattern.test(potentialTLD))) {
28 return true;
29 }
30
31 const customTLDs = getCustomMultiPartTLDs();
32 return customTLDs.includes(potentialTLD.toLowerCase());
33}
34
35export const parseCookieDomain = (url: string) => {
36 if (process.env.CUSTOM_COOKIE_DOMAIN) {

Callers 1

parseCookieDomainFunction · 0.85

Calls 2

getCustomMultiPartTLDsFunction · 0.85
someMethod · 0.45

Tested by

no test coverage detected