Skip to content

Commit

Permalink
Merge pull request #193 from suvarnakale/shiksha-2.0
Browse files Browse the repository at this point in the history
Issue #PS-318 chore: logic change according to changed api response
  • Loading branch information
itsvick authored May 31, 2024
2 parents 584a4e8 + 37dd13c commit 2fb241a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/Interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ instance.interceptors.response.use(
async (error) => {
const originalRequest = error.config;

if (error.response.data.statusCode === 401 && !originalRequest._retry) {
if (error.response.data.responseCode === 401 && !originalRequest._retry) {
if (error?.response?.request?.responseURL.includes('/auth/refresh')) {
window.location.href = '/logout';
} else {
Expand Down

0 comments on commit 2fb241a

Please sign in to comment.