Skip to content

Commit

Permalink
[fix] 1. SocialLogin login함수 매개변수명 수정
Browse files Browse the repository at this point in the history
socialUserData2 -> socialUserData
  • Loading branch information
Ryeolee committed Mar 25, 2024
1 parent c1ba121 commit 6b73d0d
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ abstract public class SocialLogin {

public abstract LoginResponseDto loginMethod(String socialToken);

public LoginResponseDto login( SocialUserResponseDto socialUserData2){
public LoginResponseDto login( SocialUserResponseDto socialUserData){

verifySocialUserData(socialUserData2);
verifySocialUserData(socialUserData);

Optional<User> userData = userRepository.findByUserNumber(String.valueOf(socialUserData2.getId()));
Optional<User> userData = userRepository.findByUserNumber(String.valueOf(socialUserData.getId()));

verifyUserDataAndSignUp(userData, socialUserData2);
verifyUserDataAndSignUp(userData, socialUserData);

Optional<User> userLoginData = userRepository.findByUserNumber(String.valueOf(socialUserData2.getId()));
Optional<User> userLoginData = userRepository.findByUserNumber(String.valueOf(socialUserData.getId()));

String refreshToken = jwtTokenProvider.createRefreshToken(userLoginData.get().getId());
String accessToken = jwtTokenProvider.createAccessToken(
Expand Down

0 comments on commit 6b73d0d

Please sign in to comment.