fix(web): clear server session on dev login user switch #205
@@ -262,6 +262,9 @@ export function App() {
|
|||||||
return <Navigate to="/setup" replace />;
|
return <Navigate to="/setup" replace />;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Don't render portal chrome at /login — DevLoginSelector is shown instead
|
||||||
|
const showCustomerPortal = !location.pathname.startsWith("/admin") && location.pathname !== "/login";
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<BrandingProvider>
|
<BrandingProvider>
|
||||||
{location.pathname.startsWith("/admin") ? (
|
{location.pathname.startsWith("/admin") ? (
|
||||||
@@ -271,12 +274,12 @@ export function App() {
|
|||||||
</Routes>
|
</Routes>
|
||||||
{authDisabled && <DevSessionIndicator />}
|
{authDisabled && <DevSessionIndicator />}
|
||||||
</>
|
</>
|
||||||
) : (
|
) : showCustomerPortal ? (
|
||||||
<>
|
<>
|
||||||
<CustomerPortal />
|
<CustomerPortal />
|
||||||
{authDisabled && <DevSessionIndicator />}
|
{authDisabled && <DevSessionIndicator />}
|
||||||
</>
|
</>
|
||||||
)}
|
) : null}
|
||||||
</BrandingProvider>
|
</BrandingProvider>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user