From b07f0254cf383cede1a0c90a26ffcc291ebde83b Mon Sep 17 00:00:00 2001 From: Nick Summers Date: Wed, 11 Dec 2024 15:48:39 -0500 Subject: [PATCH] Amplify V6: Remove window.location call in logout to stop cancelling cognito call (#824) --- services/ui-src/src/utils/auth/UserProvider.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/services/ui-src/src/utils/auth/UserProvider.tsx b/services/ui-src/src/utils/auth/UserProvider.tsx index e2fd4a883..2fc25a073 100644 --- a/services/ui-src/src/utils/auth/UserProvider.tsx +++ b/services/ui-src/src/utils/auth/UserProvider.tsx @@ -45,7 +45,6 @@ export const UserProvider = ({ children }: Props) => { } catch (error) { console.log(error); // eslint-disable-line no-console } - window.location.assign(config.POST_SIGNOUT_REDIRECT); }; const checkAuthState = useCallback(async () => {