/** * SSO Cookie Utilities * * Provides a shared cookie mechanism for cross-domain SSO. * In local dev, all products share *.local.burdenoff.com so a cookie works. * In production, the Storage Access API handles cross-domain storage; * the cookie serves as a fast-path signal that a session exists. * * @module @burdenoff/fe-libs/shared/utils/authCookie */ export interface ShellSsoCookieData { id: string; origin: string | null; } export declare function isSharedSsoCookieDomain(): boolean; export declare function isLocalDevSsoHost(hostname?: string): boolean; export declare function isTrustedSsoOrigin(origin: string | null | undefined): boolean; export declare function setShellSsoCookies(profileId: string, origin?: string): void; export declare function readShellSsoCookie(): ShellSsoCookieData | null; export declare function clearShellSsoCookies(): void; /** * Set the SSO cookie with the active profile ID. * This allows other shells on the same (or shared) domain to detect * an existing session without waiting for the bridge iframe. */ export declare function setSSoCookie(profileId: string): void; /** * Read the SSO cookie to get the active profile ID. * Returns null if no cookie exists. */ export declare function getSSoCookie(): string | null; /** * Clear the SSO cookie (on logout). */ export declare function clearSSoCookie(): void; //# sourceMappingURL=authCookie.d.ts.map