NOT_AUTHORIZED 추가 (비인가 계정)

This commit is contained in:
yoon 2025-03-31 17:41:06 +09:00
parent 733a67fffc
commit c73bd6459c

View File

@ -42,8 +42,10 @@ public class MemberAuthFailureHandler implements AuthenticationFailureHandler {
if (exception instanceof BadCredentialsException || message.startsWith("NOT_FOUND")) {
res = UserErrorCode.USER_NOT_FOUND.getApiResponse();
} else if (message.startsWith("NOT_AUTHORIZED")) {
} else if (message.startsWith("NOT_AUTH_USER")) {
res = UserErrorCode.NOT_AUTH_USER.getApiResponse();
} else if (message.startsWith("NOT_AUTHORIZED")) {
res = UserErrorCode.NOT_AUTHORIZED.getApiResponse();
} else if (message.startsWith("EXIT")) {
res = UserErrorCode.EXIT_USER.getApiResponse();
}