Skip to content

Commit

Permalink
refactor : code smell 수정, 안쓰는 변수 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
13wjdgk committed Oct 5, 2023
1 parent 4d8b826 commit 0b02082
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public class DefaultOauthLoginService implements OauthLoginService {
private final UserSearchService userSearchService;
private final Map<OauthProvider, OAuthClient> clients;
private final UserRepository userRepository;
private final String authorization = "Authorization";
private final JwtTokenProvider jwtTokenProvider;

public DefaultOauthLoginService(AuthTokenGenerator authTokenGenerator, UserSearchService userSearchService, List<OAuthClient> clients,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*/
@Component
public class JwtTokenProvider {
private final Key key;
private Key key;
private static final String BEARER = "Bearer";

public JwtTokenProvider(@Value("${jwt.secret-key}") String secretKey) {
Expand Down Expand Up @@ -108,7 +108,7 @@ public String getToken(final String authHeader) {
*/
public JWTStatus validationToken(String token) {
try {
Key key = getKey();
key = getKey();
Jwts.parserBuilder()
.setSigningKey(key)
.build()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

@SpringBootTest
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
public class JwtTokenProviderTest {
class JwtTokenProviderTest {
private final String subject = "12345678";

@Autowired
Expand Down

0 comments on commit 0b02082

Please sign in to comment.