Skip to content

Commit

Permalink
feat: AT check 검증
Browse files Browse the repository at this point in the history
  • Loading branch information
f1v3-dev committed Nov 5, 2024
1 parent bb02be2 commit 6d30cdf
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,12 @@ public ReissueResponseDto reissueToken(String refreshToken) {
public boolean checkAuth(String authorization) {

String accessToken = authorization.substring(7);
String validate = jwtProvider.validateToken(accessToken);
String validate;
try {
validate = jwtProvider.validateToken(accessToken);
} catch (ExpiredJwtException e) {
throw new TokenExpiredException("accessError");
}

return Strings.isNotBlank(validate);
}
Expand Down

0 comments on commit 6d30cdf

Please sign in to comment.