{"version":3,"file":"thirdPartyDomains.mjs","names":[],"sources":["../../../../src/internal/clerk-js/thirdPartyDomains.ts"],"sourcesContent":["/**\n * Domains of third-party embedding platforms (e.g. online IDEs, preview environments)\n * that require special handling for cookies and OAuth flows.\n *\n * These domains need:\n * - `SameSite=None` on cookies to function correctly\n * - Popup-based OAuth flows instead of redirects\n */\nexport const THIRD_PARTY_COOKIE_DOMAINS = [\n  '.lovable.app',\n  '.lovableproject.com',\n  '.webcontainer-api.io',\n  '.vusercontent.net',\n  '.v0.dev',\n  '.v0.app',\n  '.lp.dev',\n  '.replit.dev',\n];\n\n/**\n * Returns `true` if the current origin belongs to a known third-party\n * embedding platform that requires `SameSite=None` on cookies.\n */\nexport function isThirdPartyCookieDomain(): boolean {\n  try {\n    return THIRD_PARTY_COOKIE_DOMAINS.some(domain => window.location.hostname.endsWith(domain));\n  } catch {\n    return false;\n  }\n}\n"],"mappings":";;;;;;;;;AAQA,MAAa,6BAA6B;CACxC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;;;;;AAMD,SAAgB,2BAAoC;AAClD,KAAI;AACF,SAAO,2BAA2B,MAAK,WAAU,OAAO,SAAS,SAAS,SAAS,OAAO,CAAC;SACrF;AACN,SAAO"}