We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 075f97d + c03dfb2 commit f41c326Copy full SHA for f41c326
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