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