Skip to content

Commit 86f0adb

Browse files
authored
Merge pull request #168 from Gathering-Organization/be/feat/auth
[fix] access, refresh token 기간 의도대로 재설정
2 parents 6faf4f1 + 7233198 commit 86f0adb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Gathering_be/src/main/java/com/Gathering_be/global/jwt/JwtTokenProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public JwtTokenProvider(
3232
ObjectMapper objectMapper) {
3333
this.key = Keys.hmacShaKeyFor(secretKey.getBytes());
3434
this.tokenValidityInMilliseconds = tokenValidityInSeconds * 1000 * 30;
35-
this.refreshTokenValidityInMilliseconds = tokenValidityInSeconds * 14 * 24 * 60 * 60 * 1000;
35+
this.refreshTokenValidityInMilliseconds = tokenValidityInSeconds * 14 * 24 * 60 * 1000;
3636
this.objectMapper = objectMapper;
3737
}
3838

Gathering_be/src/main/resources/application-prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ spring:
3030

3131
jwt:
3232
secret: ${PROD_JWT_SECRET}
33-
token-validity-in-seconds: 3600
33+
token-validity-in-seconds: 60
3434

3535
springdoc:
3636
swagger-ui:

0 commit comments

Comments
 (0)