Skip to content

Commit

Permalink
fix page reload when 401 error on login page (arminpatel#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
arminpatel authored Sep 16, 2023
1 parent acb956c commit e29ba49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/configureAxios.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const configureAxios = () => {
},
async (error) => {
const originalRequest = error.config;
if (error.response.status === 401 && !originalRequest._retry) {
if (error.response.status === 401 && !originalRequest.url.includes("/api/token") && !originalRequest._retry) {
originalRequest._retry = true;

try {
Expand Down

0 comments on commit e29ba49

Please sign in to comment.