Skip to content

Commit

Permalink
chore: jwt 만료시간을 1분으로 임의 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
rlarltj committed Jan 14, 2024
1 parent fc6e6fd commit a44c8bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- feat/**

# 권한 설정
permissions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public String getAccessToken(Long userId, String role) {

public String createAccessToken(Map<String, Object> claims) {
Date now = new Date();
Date expiredDate = new Date(now.getTime() + accessTokenExpirySeconds * MILLI_SECOND);
Date expiredDate = new Date(now.getTime() + 60000);

return Jwts.builder()
.setIssuer(issuer)
Expand Down

0 comments on commit a44c8bf

Please sign in to comment.