From 20e848deb6a9d7c1d0c087d933a7da9ebf4ac796 Mon Sep 17 00:00:00 2001 From: chan Date: Tue, 20 Jan 2026 15:27:35 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A6=AC=EB=8B=A4=EC=9D=B4=EB=A0=89=ED=8A=B8?= =?UTF-8?q?=20=EB=82=A9=EC=B9=98=20=EB=B0=A9=EC=A7=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/lib/main.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/lib/main.dart b/frontend/lib/main.dart index 735acff6..b63cfb0f 100644 --- a/frontend/lib/main.dart +++ b/frontend/lib/main.dart @@ -125,6 +125,11 @@ final _router = GoRouter( _routerLogger.fine("Redirect check - Path: $path, IsLoggedIn: $isLoggedIn"); + // 0. ALWAYS allow /verify/ to proceed so it can signal the backend + if (path.startsWith('/verify/')) { + return null; + } + // If not logged in and trying to access a protected page, redirect to /login if (!isLoggedIn && !isPublicPath) { _routerLogger.info("Not logged in, redirecting to /login"); @@ -132,7 +137,7 @@ final _router = GoRouter( } // If logged in and trying to access login page, redirect to root (dashboard) - if (isLoggedIn && (path == '/login' || path.startsWith('/verify/'))) { + if (isLoggedIn && path == '/login') { _routerLogger.info("Logged in, redirecting to /"); return '/'; }