fix(web): clear server session on dev login user switch #205

Merged
groombook-engineer[bot] merged 2 commits from fix/gro-263-dev-login-session-switch into main 2026-04-02 01:44:28 +00:00
Showing only changes of commit 22475ae8e2 - Show all commits
+5 -2
View File
@@ -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>
); );
} }