From 926ff52caa0257efb4bc39f6a13064d3a5348ae5 Mon Sep 17 00:00:00 2001 From: Deepak Jain Date: Mon, 18 Jan 2021 19:48:12 +0530 Subject: [PATCH] INFRA-647| Deepak Jain| fixing user login --- src/action/action.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/action/action.ts b/src/action/action.ts index 8251adf..272c709 100644 --- a/src/action/action.ts +++ b/src/action/action.ts @@ -3,7 +3,10 @@ export const getUser = (state, dispatch) => { credentials: "include", }) .then((response) => { - if (response.ok) { + if (response.redirected) { + window.location.href = response.url; + } + else if (response.ok) { return response.text(); } })