INFRA-647| Deepak Jain| fixing user login
This commit is contained in:
@@ -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();
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user