refactor: renew API error handler
This commit is contained in:
@@ -91,8 +91,8 @@ export const authApi = createApi({
|
|||||||
const { data } = await queryFulfilled;
|
const { data } = await queryFulfilled;
|
||||||
dispatch(updateToken(data));
|
dispatch(updateToken(data));
|
||||||
} catch {
|
} catch {
|
||||||
dispatch(resetAuthData());
|
// dispatch(resetAuthData());
|
||||||
console.log("renew token error");
|
console.error("renew token error");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user