diff --git a/doorip-api/src/main/java/org/doorip/auth/jwt/JwtValidator.java b/doorip-api/src/main/java/org/doorip/auth/jwt/JwtValidator.java index c36f1f6..3fd3c20 100644 --- a/doorip-api/src/main/java/org/doorip/auth/jwt/JwtValidator.java +++ b/doorip-api/src/main/java/org/doorip/auth/jwt/JwtValidator.java @@ -32,7 +32,7 @@ public void validateRefreshToken(String refreshToken) { Claims claims = parseToken(refreshToken); String issuer = claims.getIssuer(); if (issuer.equals(JwtType.AT.toString())) { - throw new UnauthorizedException(ErrorMessage.INVALID_ACCESS_TOKEN_VALUE); + throw new UnauthorizedException(ErrorMessage.INVALID_REFRESH_TOKEN_VALUE); } } catch (ExpiredJwtException e) { throw new UnauthorizedException(ErrorMessage.EXPIRED_REFRESH_TOKEN);