Skip to content

Commit f8a3364

Browse files
committed
[refactory] 토큰 검증 로직 단순화
1 parent a590275 commit f8a3364

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/org/dfbf/soundlink/global/auth/JwtProvider.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@ public boolean validateToken(String token) {
7676
return true;
7777
}catch (ExpiredJwtException e) {
7878
log.warn("[ERROR] Token is expired.");
79-
throw new CustomJwtException("토큰이 만료.", e);
79+
throw e;
8080
} catch (JwtException e) {
8181
log.warn("[ERROR] Token validation failed: {}", e.getMessage());
82-
throw new CustomJwtException("토큰 검증 실패", e);
82+
throw e;
8383
} catch (Exception e) {
84-
throw new CustomJwtException("예기치 않은 오류 발생", e);
84+
throw e;
8585
}
8686
}
8787

0 commit comments

Comments
 (0)