%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home2/rezakur1/ai.rezakurnia.com/assets/
Upload File :
Create Path :
Current File : /home2/rezakur1/ai.rezakurnia.com/assets/GoogleCallbackPage-CWdIRO3E.js

import{e as i,b as d,u as f,r as l,j as r}from"./index-Bu042oJp.js";function g(){const[a]=i(),t=d(),{completeOAuth:n}=f(),c=l.useRef(!1);return l.useEffect(()=>{if(c.current)return;c.current=!0;const o=a.get("code"),u=a.get("state");if(!o||!u){t("/login",{replace:!0,state:{oauthError:"Kode otorisasi Google tidak ditemukan."}});return}const s={current:!1};return n(o,u).then(e=>{s.current||t(e!=null&&e.has_password?"/dashboard":"/lengkapi-password",{replace:!0})}).catch(e=>{s.current||t("/login",{replace:!0,state:{oauthError:e.message}})}),()=>{s.current=!0}},[a,t,n]),r.jsx("div",{className:"flex min-h-screen items-center justify-center",children:r.jsxs("div",{className:"flex flex-col items-center gap-4",children:[r.jsx("div",{className:"h-10 w-10 animate-spin rounded-full border-2 border-brand-500/30 border-t-brand-400"}),r.jsx("p",{className:"text-sm text-slate-500",children:"Menghubungkan akun Google…"})]})})}export{g as default};

Zerion Mini Shell 1.0