Skip to content

Commit 2411848

Browse files
committed
Add non-refresh block to interceptor
1 parent fd163be commit 2411848

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

djsr/frontend/src/axiosApi.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,13 @@ axiosInstance.interceptors.response.use(
5252
console.log("Refresh token is expired", tokenParts.exp, now);
5353
}
5454
}else{
55-
console.log("Refresh token missing.")
55+
console.log("Refresh token not available.")
5656
}
57+
}else{
58+
console.log("Do other API intercepting unrelated to Token Refreshment here.")
5759
}
60+
}else{
61+
console.log("Too many retries.")
5862
}
5963

6064
// specific error handling done elsewhere

0 commit comments

Comments
 (0)