refresh token

This commit is contained in:
hamid zarghami
2026-01-27 12:50:43 +03:30
parent 94d10d56a9
commit a58f1da31c
6 changed files with 18 additions and 2 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ declare global {
const queryClient = new QueryClient({
queryCache: new QueryCache({
onError: async (error: IApiErrorRepsonse) => {
if (error?.response?.statusCode === 401) {
if (error?.response?.status === 401) {
// اگر refresh token منقضی شده باشد، دیگر تلاش نکن
if (window.isRefreshTokenExpired) {
return;