From 82c4c5e8ea9f57ca46ce01d3d26b565d5182756e Mon Sep 17 00:00:00 2001 From: Jin Hyuk Date: Tue, 8 Oct 2024 12:50:14 +0900 Subject: [PATCH] feat/#507: spotless --- .../exceed/application/service/auth/AuthService.java | 12 +++++++----- .../exceed/common/security/domain/JwtManager.java | 3 --- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/BE/exceed/src/main/java/com/gaebaljip/exceed/application/service/auth/AuthService.java b/BE/exceed/src/main/java/com/gaebaljip/exceed/application/service/auth/AuthService.java index fd6aae38..d1d47551 100644 --- a/BE/exceed/src/main/java/com/gaebaljip/exceed/application/service/auth/AuthService.java +++ b/BE/exceed/src/main/java/com/gaebaljip/exceed/application/service/auth/AuthService.java @@ -1,21 +1,21 @@ package com.gaebaljip.exceed.application.service.auth; -import com.gaebaljip.exceed.adapter.out.redis.RedisAdapter; -import com.gaebaljip.exceed.common.exception.auth.NotFoundRefreshTokenException; -import com.gaebaljip.exceed.common.security.domain.JwtResolver; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.gaebaljip.exceed.adapter.in.auth.request.LoginRequest; +import com.gaebaljip.exceed.adapter.out.redis.RedisAdapter; import com.gaebaljip.exceed.application.domain.member.MemberEntity; import com.gaebaljip.exceed.application.port.in.auth.AuthUsecase; import com.gaebaljip.exceed.application.port.out.member.MemberPort; import com.gaebaljip.exceed.common.EatCeedStaticMessage; import com.gaebaljip.exceed.common.dto.HttpRequestDTO; import com.gaebaljip.exceed.common.dto.TokenDTO; +import com.gaebaljip.exceed.common.exception.auth.NotFoundRefreshTokenException; import com.gaebaljip.exceed.common.exception.auth.PasswordMismatchException; import com.gaebaljip.exceed.common.security.domain.JwtManager; +import com.gaebaljip.exceed.common.security.domain.JwtResolver; import com.gaebaljip.exceed.common.security.exception.InvalidJwtException; import lombok.RequiredArgsConstructor; @@ -68,8 +68,10 @@ private TokenDTO reissueToken(String requestAccessToken) { if (accessTokenMemberId.equals(refreshTokenMemberId)) { return TokenDTO.builder() - .accessToken(jwtManager.generateAccessToken(Long.parseLong(accessTokenMemberId))) - .refreshToken(jwtManager.generateRefreshToken(Long.parseLong(refreshTokenMemberId))) + .accessToken( + jwtManager.generateAccessToken(Long.parseLong(accessTokenMemberId))) + .refreshToken( + jwtManager.generateRefreshToken(Long.parseLong(refreshTokenMemberId))) .build(); } throw InvalidJwtException.EXECPTION; diff --git a/BE/exceed/src/main/java/com/gaebaljip/exceed/common/security/domain/JwtManager.java b/BE/exceed/src/main/java/com/gaebaljip/exceed/common/security/domain/JwtManager.java index 0e6dbdb3..fe563a93 100644 --- a/BE/exceed/src/main/java/com/gaebaljip/exceed/common/security/domain/JwtManager.java +++ b/BE/exceed/src/main/java/com/gaebaljip/exceed/common/security/domain/JwtManager.java @@ -11,10 +11,7 @@ import org.springframework.stereotype.Component; import com.gaebaljip.exceed.adapter.out.redis.RedisAdapter; -import com.gaebaljip.exceed.common.EatCeedStaticMessage; import com.gaebaljip.exceed.common.dto.HttpRequestDTO; -import com.gaebaljip.exceed.common.dto.TokenDTO; -import com.gaebaljip.exceed.common.exception.auth.NotFoundRefreshTokenException; import com.gaebaljip.exceed.common.security.exception.ExpiredJwtException; import com.gaebaljip.exceed.common.security.exception.InvalidJwtException; import com.gaebaljip.exceed.common.security.exception.UnSupportedJwtException;