From 00203722f8c83d71ef1268b7ae913ad0ce059aca Mon Sep 17 00:00:00 2001 From: Stavros Date: Wed, 14 May 2025 21:00:06 +0300 Subject: [PATCH] fix: run oauth auto redirect only when there is a redirect URI --- frontend/src/pages/login-page.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/login-page.tsx b/frontend/src/pages/login-page.tsx index 345d568..be38a97 100644 --- a/frontend/src/pages/login-page.tsx +++ b/frontend/src/pages/login-page.tsx @@ -96,11 +96,15 @@ export const LoginPage = () => { useEffect(() => { if (isMounted()) { - if (oauthConfigured && configuredProviders.includes(oauthAutoRedirect)) { + if ( + oauthConfigured && + configuredProviders.includes(oauthAutoRedirect) && + redirectUri + ) { oauthMutation.mutate(oauthAutoRedirect); } } - }); + }, []); return (