PageSourceSearch

https://www.dynastyquant.xyz/_nuxt/E411SFtR.js

js dynastyquant.xyz collected 2026-09-24 15:14:57 UTC 2,092 bytes, 1 lines download raw bytes

1import{g as m}from"./o7HLjPvJ.js";import{Y as E,l as a,$ as b}from"./Bjm5lLmX.js";const o=b({user:null,loading:!0});function k(){const r=m();async function i(){if(!r){o.loading=!1;return}const{data:{session:t}}=await r.auth.getSession();o.user=t?.user??null,o.loading=!1,r.auth.onAuthStateChange((e,n)=>{o.user=n?.user??null})}async function u(t,e){if(!r)throw new Error("Supabase is not configured.");const{data:n,error:s}=await r.auth.signUp({email:t,password:e,options:{emailRedirectTo:`${window.location.origin}/auth/confirm`}});if(s)throw s;if(!n.user||n.user.identities&&n.user.identities.length===0)throw new Error("An account with this email already exists. Please check your inbox or try signing in.");return n}async function c(t,e){if(!r)throw new Error("Supabase is not configured.");const{data:n,error:s}=await r.auth.signInWithPassword({email:t,password:e});if(s)throw s;return o.user=n.user,n}async function w(){if(!r)return;const{error:t}=await r.auth.signOut();if(t)throw t;o.user=null}async function f(t){if(!r)throw new Error("Supabase is not configured.");const{error:e}=await r.auth.resetPasswordForEmail(t,{redirectTo:`${window.location.origin}/auth/update-password`});if(e)throw e}async function h(t){if(!r)throw new Error("Supabase is not configured.");const{data:e,error:n}=await r.auth.updateUser({password:t});if(n)throw n;return e}async function d(t){if(!r)throw new Error("Supabase is not configured.");const{data:e,error:n}=await r.auth.exchangeCodeForSession(t);if(n)throw n;return o.user=e.user,e}async function l(t,e){if(!r)throw new Error("Supabase is not configured.");const{data:n,error:s}=await r.auth.verifyOtp({token_hash:t,type:e});if(s)throw s;return o.user=n.user,n}async function g(){if(!r)return null;const{data:{session:t}}=await r.auth.getSession();return t?.access_token??null}const p=a(()=>!!o.user),y=a(()=>o.user?.id??null),S=a(()=>o.user?.email??null);return{...E(o),isLoggedIn:p,userId:y,userEmail:S,init:i,signUp:u,signIn:c,signOut:w,getToken:g,resetPasswordForEmail:f,updatePassword:h,exchangeCodeForSession:d,verifyOtp:l}}export{k as u};

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.