Skip to content

Commit a139b29

Browse files
authored
Merge pull request #232 from DevKor-github/main
[Release] main to deploy
2 parents 0b25407 + 5da1d3e commit a139b29

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ontime-back/src/main/java/devkor/ontime_back/global/jwt/JwtTokenProvider.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,11 @@ public class JwtTokenProvider {
5555
// accessToken 생성
5656
public String createAccessToken(String email, Long userId) {
5757
Date now = new Date();
58+
log.info("expiresAt: {}", new Date(now.getTime() + accessTokenExpirationPeriod));
5859
return JWT.create()
5960
.withSubject(ACCESS_TOKEN_SUBJECT)
6061
.withExpiresAt(new Date(now.getTime() + accessTokenExpirationPeriod))
62+
.withJWTId(UUID.randomUUID().toString())
6163
.withClaim(EMAIL_CLAIM, email)
6264
.withClaim(USER_ID_CLAIM, userId)
6365
.sign(Algorithm.HMAC512(secretKey));

0 commit comments

Comments
 (0)