PageSourceSearch

https://app.homesage.ai/assets/auth.api-Cm6atFiu.js

js homesage.ai collected 2026-10-01 14:12:59 UTC 2,464 bytes, 2 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`10fe3c24c5890d34ac72202b7a4a8c6969b98944`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`60e26a8d-7000-4c26-93f0-e1a128fb973f`,e._sentryDebugIdIdentifier=`sentry-dbid-60e26a8d-7000-4c26-93f0-e1a128fb973f`)}catch{}})();import{t as e}from"./api-client-BHvLKpil.js";async function t({email:t,password:n,turnstileToken:r}){let{data:i}=await e.post(`/auth/login/`,{email:t,password:n,...r?{turnstile_token:r}:{}});return i.user}async function n({email:t,password:n,firstname:r,lastname:i,turnstileToken:a}){let{data:o}=await e.post(`/auth/signup/`,{email:t,password:n,firstname:r,lastname:i,...a?{turnstile_token:a}:{}});return o}async function r(t){try{await e.post(`/auth/attribution/`,t)}catch{}}async function i({email:t,code:n}){let{data:r}=await e.post(`/auth/confirm-signup/`,{email:t,code:n});return r}async function a({email:t}){let{data:n}=await e.post(`/auth/resend-code/`,{email:t});return n}async function o(){await e.post(`/auth/logout/`,{})}async function s({email:t}){let{data:n}=await e.post(`/auth/forgot-password/`,{email:t});return n}async function c({email:t,code:n,new_password:r}){let{data:i}=await e.post(`/auth/confirm-forgot-password/`,{email:t,code:n,new_password:r});return i}async function l(){let{data:t}=await e.get(`/auth/me/`);return t.user}async function u({role:t}){let{data:n}=await e.post(`/auth/role/`,{role:t});return n.user}async function d(t){let{data:n}=await e.post(`/auth/onboarding/`,t);return n.user}function f(e){let{code:t,message:n,status:r}=e;if(r===0||t===`OFFLINE`||t===`UNREACHABLE`||t===`NETWORK_ERROR`)return n;switch(t){case`TooManyAttempts`:return`Too many attempts. Please try again in a minute.`;case`InvalidCode`:return`That code doesn't match. Please double-check and try again.`;case`ExpiredCode`:return`That code has expired. Please request a new one.`;case`DisposableEmail`:return`Temporary email addresses are not accepted. Use your regular email address.`;case`WeakPassword`:return`Password must be at least 8 characters and include an uppercase letter, a lowercase letter, a number, and a symbol.`;default:return n||`An unexpected error occurred. Please try again.`}}export{r as a,u as c,n as d,d as f,f as i,t as l,i as n,s as o,l as r,a as s,c as t,o as u};
2//# sourceMappingURL=auth.api-Cm6atFiu.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.