We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d33d7d commit c03dfb2Copy full SHA for c03dfb2
1 file changed
apps/ticket/src/shared/types/axioxError.ts
@@ -28,6 +28,7 @@ export function isNotAuthErrorResponse(error: unknown): error is AxiosErrorRespo
28
return (
29
isAxiosErrorResponse(error) &&
30
(error.response?.data.code === ERROR_CODE.LOGIN_REQUIRED ||
31
+ error.response?.data.code === ERROR_CODE.ACCESS_TOKEN_EXPIRED ||
32
error.response?.data.code === ERROR_CODE.NO_ACCESS_TOKEN ||
33
error.response?.data.code === ERROR_CODE.REFRESH_TOKEN_EXPIRED)
34
);
0 commit comments