From f7d32436b5ffd73c85bfde44eb9640bd02ca4b80 Mon Sep 17 00:00:00 2001 From: wood chen Date: Fri, 21 Feb 2025 12:52:26 +0800 Subject: [PATCH] fix: Modify OAuth authorization redirect after login - Update router.push to redirect back to OAuth authorization page - Preserve original OAuth parameters using window.location.search - Ensure smooth continuation of OAuth authorization flow after authentication --- src/components/auth/user-authorize.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/auth/user-authorize.tsx b/src/components/auth/user-authorize.tsx index 6d70a1d..e2647cd 100644 --- a/src/components/auth/user-authorize.tsx +++ b/src/components/auth/user-authorize.tsx @@ -34,8 +34,8 @@ export function UserAuthorize({ } else { // 更新 session await update(); - // 登录成功后重定向到控制台 - router.push("/dashboard"); + // 重定向回OAuth授权页面 + router.push(`/oauth/authorize${window.location.search}`); } } catch (error) { setError(error);