Skip to content

Commit

Permalink
fix: Token 객체 TTL 시간 단위 이슈 해결 (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ji-soo708 authored Dec 17, 2023
1 parent de435b2 commit 3e41d97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void saveTokenInfo(Long memberId, String refreshToken, String accessToken
.expiration(validityRefreshTokenInMilliseconds) // 리프레시 토큰 유효기간
.build();

redisTemplate.opsForValue().set(refreshToken, token, validityRefreshTokenInMilliseconds, TimeUnit.SECONDS);
redisTemplate.opsForValue().set(refreshToken, token, validityRefreshTokenInMilliseconds, TimeUnit.MILLISECONDS);
}

public Member getMemberFromRefreshToken(String refreshToken) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ spring:

security.jwt.token:
secret-key: testtesttesttesttesttesttesttesttesttest
access-key-expire-length: 10000
access-key-expire-length: 864000
refresh-key-expire-length: 1728000

springdoc:
Expand Down

0 comments on commit 3e41d97

Please sign in to comment.