Skip to content

Commit

Permalink
fix: do not show Authentication page before redirect (#1139)
Browse files Browse the repository at this point in the history
  • Loading branch information
ValeraS authored Aug 9, 2024
1 parent efd5813 commit e266c8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/reducers/authentication/authentication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const authenticationApi = api.injectEndpoints({
dispatch(setUser(data));
return {data};
} catch (error) {
if (isAxiosResponse(error) && error.status === 401) {
if (isAxiosResponse(error) && error.status === 401 && !error.data?.authUrl) {
dispatch(setIsAuthenticated(false));
}
return {error};
Expand Down

0 comments on commit e266c8f

Please sign in to comment.