Skip to content

Commit

Permalink
feat/#507: spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
LJH098 committed Oct 8, 2024
1 parent 8612e81 commit 82c4c5e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 82c4c5e

Please sign in to comment.