INFRA-647| Deepak Jain| fixing user login

This commit is contained in:
Deepak Jain
2021-01-18 19:48:12 +05:30
parent 6b036c745a
commit 926ff52caa

View File

@@ -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();
}
})