Skip to content

Commit d8dde0f

Browse files
committed
fix: 에러코드 타입 재선언...
1 parent db6d697 commit d8dde0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/types/api/tokenValidator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import useAuthStore from '../../../app/provider/authStore';
33

44
// 타입 가드 함수
55
function isTokenError(error: unknown): error is { code: string; status?: number } {
6-
return error !== null && typeof error === 'object' && 'code' in error && typeof (error as any).code === 'string';
6+
return error !== null && typeof error === 'object' && 'code' in error && typeof (error as { code: unknown }).code === 'string';
77
}
88

99
// 토큰 유효성 검증 함수 (httpOnly 쿠키 사용)

0 commit comments

Comments
 (0)