From c73bd6459c5b220638256d1333fdc7b39f71581b Mon Sep 17 00:00:00 2001 From: yoon Date: Mon, 31 Mar 2025 17:41:06 +0900 Subject: [PATCH] =?UTF-8?q?NOT=5FAUTHORIZED=20=EC=B6=94=EA=B0=80=20(?= =?UTF-8?q?=EB=B9=84=EC=9D=B8=EA=B0=80=20=EA=B3=84=EC=A0=95)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/security/handler/MemberAuthFailureHandler.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/io/company/localhost/common/security/handler/MemberAuthFailureHandler.java b/src/main/java/io/company/localhost/common/security/handler/MemberAuthFailureHandler.java index 134b19c..7c3f2ed 100644 --- a/src/main/java/io/company/localhost/common/security/handler/MemberAuthFailureHandler.java +++ b/src/main/java/io/company/localhost/common/security/handler/MemberAuthFailureHandler.java @@ -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(); }