File tree Expand file tree Collapse file tree 4 files changed +4
-7
lines changed
src/main/java/com/rentify/rentify_api Expand file tree Collapse file tree 4 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 11package com .rentify .rentify_api .common .config ;
22
33import com .rentify .rentify_api .common .filter .JwtAuthenticationFilter ;
4+ import lombok .RequiredArgsConstructor ;
45import org .springframework .context .annotation .Bean ;
56import org .springframework .context .annotation .Configuration ;
67import org .springframework .http .HttpMethod ;
1617
1718@ Configuration
1819@ EnableWebSecurity
20+ @ RequiredArgsConstructor
1921public class SecurityConfig {
2022
2123 private final JwtAuthenticationFilter jwtAuthenticationFilter ;
2224
23- public SecurityConfig (JwtAuthenticationFilter jwtAuthenticationFilter ) {
24- this .jwtAuthenticationFilter = jwtAuthenticationFilter ;
25- }
26-
2725 private static final String [] SWAGGER_WHITELIST = {
2826 "/swagger-ui.html" ,
2927 "/swagger-ui/**" ,
Original file line number Diff line number Diff line change 66@ Getter
77@ AllArgsConstructor
88public class LoginResponse {
9+
910 private String accessToken ;
1011 private String refreshToken ;
11-
1212}
Original file line number Diff line number Diff line change 33public class UnauthenticatedException extends RuntimeException {
44
55 public UnauthenticatedException () {
6- super ("인증되지 않은 사용자입ㄴ디ㅏ ." );
6+ super ("인증되지 않은 사용자입니다 ." );
77 }
88}
Original file line number Diff line number Diff line change @@ -126,7 +126,6 @@ public LoginResponse login(LoginRequest request) {
126126 }
127127
128128 String accessToken = jwtTokenProvider .createAccessToken (user .getId ());
129-
130129 String refreshToken = jwtTokenProvider .createRefreshToken (user .getId ());
131130
132131 refreshtokenRepository .save (
You can’t perform that action at this time.
0 commit comments