Skip to content

Commit

Permalink
#31 [Update] Access token null일 때 예외 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
Anna-Jin committed Aug 1, 2022
1 parent 1d61757 commit 399bd53
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ public class TokenService {
public AuthResponse refreshToken(HttpServletRequest request, HttpServletResponse response) {
AuthToken authToken = tokenProvider.convertAccessToken(request);

if (authToken == null) {
throw new CustomException(ErrorCode.ACCESS_TOKEN_NOT_EXIST);
}

Claims claims = authToken.getExpiredTokenClaims();

// 유효한 access token 인지, 만료된 token 인지 확인
Expand Down

0 comments on commit 399bd53

Please sign in to comment.