diff --git a/vessel/src/lib/firebase.ts b/vessel/src/lib/firebase.ts index 555cd8382..4ad9653d8 100644 --- a/vessel/src/lib/firebase.ts +++ b/vessel/src/lib/firebase.ts @@ -150,6 +150,15 @@ export function isSafariBrowser(userAgent: string | undefined = typeof navigator export function shouldUseSessionAuthPersistence( userAgent: string | undefined = typeof navigator === 'undefined' ? undefined : navigator.userAgent, ): boolean { + // If running on a first-party auth domain (bypassing ITP), we can safely use + // local persistence without IndexedDB cross-site hanging. + if ( + typeof window !== 'undefined' && + (window.location.hostname === 'ravencalder.com' || + window.location.hostname === 'www.ravencalder.com') + ) { + return false; + } if (!userAgent) return false; // Every iOS browser shell uses WebKit; IndexedDB stalls the same as Safari.