From 450d022a8a7d530b2445a44fd5011e4a8145c65f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=86=A1=EC=98=81=EB=AF=BC?= Date: Mon, 1 Jul 2024 16:53:15 +0900 Subject: [PATCH] fix: change to access token --- .../java/kr/mafoo/gateway/filter/JWTAuthenticationFilter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api-gateway/src/main/java/kr/mafoo/gateway/filter/JWTAuthenticationFilter.java b/api-gateway/src/main/java/kr/mafoo/gateway/filter/JWTAuthenticationFilter.java index ff4bae0..7e0d0d5 100644 --- a/api-gateway/src/main/java/kr/mafoo/gateway/filter/JWTAuthenticationFilter.java +++ b/api-gateway/src/main/java/kr/mafoo/gateway/filter/JWTAuthenticationFilter.java @@ -29,7 +29,7 @@ public class JWTAuthenticationFilter extends AbstractGatewayFilterFactory extractUserIdFromRefreshToken(ServerWebExchange exchange, Gat return Mono.defer(() -> { Jwe claims = parser.parseEncryptedClaims(token); String type = (String) claims.getHeader().get(TOKEN_TYPE_HEADER_KEY); - if (!type.equals(REFRESH_TOKEN_TYPE_VALUE)) { + if (!type.equals(ACCESS_TOKEN_TYPE_VALUE)) { return createSimpleErrorResponse(exchange, "AU0005", "토큰 타입이 올바르지 않습니다"); } String userId = claims.getPayload().get(USER_ID_CLAIM_KEY, String.class);