fix: Mobile login redirects to homepage without showing Auth0 login page (#188) #193

Merged
egullickson merged 9 commits from issue-188-fix-mobile-login-redirect into main 2026-02-15 15:36:38 +00:00
Showing only changes of commit a195fa9231 - Show all commits

View File

@@ -557,8 +557,8 @@ function App() {
); );
} }
// Callback route requires authentication - handled by CallbackPage component if (isCallbackRoute) {
if (isCallbackRoute && isAuthenticated) { if (isAuthenticated) {
return ( return (
<ThemeProvider> <ThemeProvider>
<React.Suspense fallback={ <React.Suspense fallback={
@@ -572,6 +572,25 @@ function App() {
</ThemeProvider> </ThemeProvider>
); );
} }
if (mobileMode) {
return (
<ThemeProvider>
<Layout mobileMode={true}>
<div className="flex items-center justify-center h-64">
<div className="text-slate-500">Processing login...</div>
</div>
</Layout>
</ThemeProvider>
);
}
return (
<ThemeProvider>
<div className="flex items-center justify-center min-h-screen">
<div className="text-lg">Processing login...</div>
</div>
</ThemeProvider>
);
}
if (shouldShowHomePage) { if (shouldShowHomePage) {
return ( return (