Skip to content

Commit

Permalink
Merge pull request #74 from codestates-seb/hotfix/refact_and_test_v.1…
Browse files Browse the repository at this point in the history
….2.0

Hotfix/refact and test v.1.2.0
  • Loading branch information
Si-Hyeak-KANG committed Oct 11, 2022
2 parents e1023a6 + 2e276e2 commit c918c07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.noterror.app.infra.handler;

import com.noterror.app.api.global.exception.BusinessLogicException;
import com.noterror.app.api.global.exception.ExceptionCode;
import com.noterror.app.api.global.exception.response.ErrorResponse;
import lombok.extern.slf4j.Slf4j;
Expand All @@ -22,6 +23,6 @@ public void handle(HttpServletRequest request,
AccessDeniedException accessDeniedException) throws IOException, ServletException {
ErrorResponse.sendErrorResponse(response, HttpStatus.FORBIDDEN);
log.warn("Forbidden error happened: {}", accessDeniedException.getMessage());
ErrorResponse.of(ExceptionCode.MEMBER_FORBIDDEN);
throw new BusinessLogicException(ExceptionCode.MEMBER_FORBIDDEN);
}
}
2 changes: 1 addition & 1 deletion server/src/main/resources/application-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ logging:
jpa: DEBUG

jwt:
access-token-expiration-minutes: 60
access-token-expiration-minutes: 30
refresh-token-expiration-minutes: 420
key:
secret: ${JWT_SECRET_KEY}
Expand Down

0 comments on commit c918c07

Please sign in to comment.