PageSourceSearch

https://infernex.ai/assets/AuthShell-vtmnbNYL.js

js infernex.ai collected 2026-10-05 13:04:50 UTC 1,187 bytes, 1 lines download raw bytes

1import{j as a}from"./vendor-motion-VOv-vRjq.js";import{u as p,A as f}from"./AuthContext-dDkX-q7D.js";import{e as _,u as g,r as v,O as x}from"./vendor-react-CgwpgauT.js";import{s as c,m as A}from"./index-DFj2BBxO.js";import"./vendor-i18n-T2j15knT.js";import"./vendor-ui-kSdzIpai.js";import"./vendor-charts-BeJd8Fxm.js";import"./vendor-supabase-DYXPcfum.js";const j=()=>{const{user:t,isLoading:o}=p(),n=_(),e=g();return v.useEffect(()=>{const s=e.hash||"",i=e.search||"",l=s.includes("access_token")||s.includes("refresh_token")||s.includes("type=")||s.includes("error=")||i.includes("code=")||i.includes("error=");if(!o&&t&&e.pathname==="/"&&l){let u=!1;const d=setTimeout(async()=>{const{data:h}=await c.from("user_roles").select("role").eq("user_id",t.id);if(u)return;const r=(h??[]).map(m=>m.role);c.from("auth_audit_log").insert({actor_user_id:t.id,target_user_id:t.id,event_type:"login",event_details:{roles:r,path:e.pathname},user_agent:typeof navigator<"u"?navigator.userAgent:null}),n(A(r.length?r:["user"]),{replace:!0})},100);return()=>{u=!0,clearTimeout(d)}}},[t,o,n,e.pathname,e.hash,e.search]),null},q=()=>a.jsxs(f,{children:[a.jsx(j,{}),a.jsx(x,{})]});export{q as default};

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.