Skip to content

Conversation

@sese2204
Copy link
Contributor

#️⃣연관된 이슈

#146

📝작업 내용

InvalidRefreshTokenException 커스텀 예외 구현

try-catch 문으로 토큰 예외 시 커스텀 예외 던지도록 구현 수정

super(baseErrorCode);
public DuplicateResourceException(ErrorStatus errorStatus) {
super(errorStatus);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BaseErrorCode 추상화 로직 다 ErrorStatus로 바꿨던데 이유가 뭔가요?

지금 구현이면 BaseErrorCode 삭제해도 될 것 같습니다.

} catch (JwtException e) {
// 유효하지 않은 리프레시 토큰
throw new GeneralException(ErrorStatus.TOKEN_INVALID);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

제가 구현하여 사용한 InvalidRefreshTokenException을 GeneralException으로 수정하신 이유가 뭔가요?

@win9-tech win9-tech merged commit fb06f35 into dev Feb 20, 2025
2 checks passed
@win9-tech win9-tech deleted the refactor/#146 branch February 20, 2025 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Refactor] 리프레시토큰 재발급할 때 클라이언트에 4013 코드 응답

4 participants