Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,11 @@ public class JwtTokenProvider {
// accessToken 생성
public String createAccessToken(String email, Long userId) {
Date now = new Date();
log.info("expiresAt: {}", new Date(now.getTime() + accessTokenExpirationPeriod));
return JWT.create()
.withSubject(ACCESS_TOKEN_SUBJECT)
.withExpiresAt(new Date(now.getTime() + accessTokenExpirationPeriod))
.withJWTId(UUID.randomUUID().toString())
.withClaim(EMAIL_CLAIM, email)
.withClaim(USER_ID_CLAIM, userId)
.sign(Algorithm.HMAC512(secretKey));
Expand Down