import{Bi as e,na as t,sa as n}from"./src-BOCweS1p.js";var r=e([`free`,`go`,`plus`,`pro`,`prolite`,`team`,`self_serve_business_usage_based`,`business`,`enterprise_cbp_usage_based`,`enterprise`,`edu`,`unknown`]);t({accessToken:n(),accountId:n(),accountUserId:n().nullable().default(null),userId:n().nullable(),email:n().nullable(),planType:r,computeResidency:n().nullable().default(null)});function i(){let e=new URL(`/auth/login`,window.location.origin);return e.searchParams.set(`next`,`${window.location.pathname}${window.location.search}${window.location.hash}`),e.toString()}function a(){return o()?(window.location.assign(i()),!0):!1}function o(){let e=window.location.hostname.toLowerCase();return e===`chatgpt.com`||e.endsWith(`.chatgpt.com`)||e===`chatgpt-staging.com`||e.endsWith(`.chatgpt-staging.com`)}export{a as t};
//# sourceMappingURL=chatgpt-token-auth.browser-BaAPAE9M.js.map