module.exports=[60350,a=>{"use strict";var b=a.i(87924),c=a.i(72131);a.s(["default",0,function(){return(0,c.useEffect)(()=>{let a=!1;return fetch("/api/auth",{cache:"no-store"}).then(a=>a.json()).then(b=>{a||(b.user?"tenant"===b.user.roleKey?window.location.replace("/student"):window.location.replace("/dashboard"):window.location.replace("/login"))}).catch(()=>!a&&window.location.replace("/login")),()=>{a=!0}},[]),(0,b.jsx)("div",{className:"login-shell",children:(0,b.jsx)("div",{className:"login-card",children:(0,b.jsx)("p",{className:"login-checking",children:"Checking your session..."})})})}])}];

//# sourceMappingURL=app_page_tsx_0es_sk2._.js.map