Skip to content

Commit

Permalink
refact: token time change
Browse files Browse the repository at this point in the history
  • Loading branch information
windeer9 committed Jan 24, 2024
1 parent 064b499 commit 5d55afd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.antMatchers(HttpMethod.DELETE, "/user/**").hasAnyRole("ADMIN", "USER")
.antMatchers(HttpMethod.POST, "/post/**").hasAnyRole("ADMIN", "USER")
.antMatchers(HttpMethod.PATCH, "/post/**").hasAnyRole("ADMIN", "USER")
.antMatchers(HttpMethod.DELETE, "/post/**").hasAnyRole("ADMIN", "USER")
// .antMatchers(HttpMethod.DELETE, "/post/**").hasAnyRole("ADMIN", "USER")
.antMatchers(HttpMethod.POST, "/comment/**").hasAnyRole("ADMIN", "USER")
.antMatchers(HttpMethod.PATCH, "/comment/**").hasAnyRole("ADMIN", "USER")
.antMatchers(HttpMethod.DELETE, "/comment/**").hasAnyRole("ADMIN", "USER")
Expand Down
4 changes: 2 additions & 2 deletions server/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ config.domain=${S3_DOMAIN}
spring.jpa.hibernate.ddl-auto=update

secret-key=${JWT_SECRET_KEY}
access-token-expiration-minutes=30
refresh-token-expiration-minutes=420
access-token-expiration-minutes=720
refresh-token-expiration-minutes=1440

aws.accessKeyId=${AWS_ACCESS_KEY}
aws.secretKey=${AWS_SECRET_ACCESS_KEY}
Expand Down

0 comments on commit 5d55afd

Please sign in to comment.