Skip to content

Commit

Permalink
Merge pull request #64 from YogitTeam/appleLogin1
Browse files Browse the repository at this point in the history
#5 refactor: 애플 로그인 res(TokenResponse) 에 name, email 피드 삭제
  • Loading branch information
xhaktmchl authored Nov 24, 2022
2 parents 52d2cef + 8be833d commit 9ad9769
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ public class TokenResponse {
private String refresh_token;
private String token_type;

// 유저 엔티티 생성 후 res
private String name;
private String email;

//추가적인 응답 필드
private String userType; // ex)apple
private Account account;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ public TokenResponse requestCodeValidations(ServicesResponse serviceResponse, St
// 유저 생성
CreateUserAppleReq createUserAppleReq = new CreateUserAppleReq(email, tokenResponse.getRefresh_token(),fullName, UserType.APPLE);
saveduser = userService.createUserApple(createUserAppleReq);

tokenResponse.setName(fullName);
tokenResponse.setEmail(email);
}
// 이미 refresh 토큰 있는 유저면 client_secret, refresh_token로 검증
else if (client_secret != null && code == null && refresh_token != null) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.yogit.server.utils.appletoken;

import lombok.NoArgsConstructor;
import org.springframework.stereotype.Service;

@Service
@NoArgsConstructor
public class AppleTokenService {


}

0 comments on commit 9ad9769

Please sign in to comment.