(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,31713,e=>{"use strict";var n=e.i(43476),o=e.i(71645);e.s(["default",0,function(){return(0,o.useEffect)(()=>{let e=!1;return fetch("/api/auth",{cache:"no-store"}).then(e=>e.json()).then(n=>{e||(n.user?"tenant"===n.user.roleKey?window.location.replace("/student"):window.location.replace("/dashboard"):window.location.replace("/login"))}).catch(()=>!e&&window.location.replace("/login")),()=>{e=!0}},[]),(0,n.jsx)("div",{className:"login-shell",children:(0,n.jsx)("div",{className:"login-card",children:(0,n.jsx)("p",{className:"login-checking",children:"Checking your session..."})})})}])}]);