From fcc1110bde1956437894b751282293109050fbf1 Mon Sep 17 00:00:00 2001 From: uijin-j Date: Tue, 19 Mar 2024 01:55:37 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=8B=89=EB=84=A4=EC=9E=84=20=EC=A0=95?= =?UTF-8?q?=EB=B3=B4=EA=B0=80=20=EC=9E=88=EB=8D=94=EB=9D=BC=EB=8F=84=20?= =?UTF-8?q?=EC=9D=B4=EB=A9=94=EC=9D=BC=EC=9D=B4=20=EC=97=86=EC=9C=BC?= =?UTF-8?q?=EB=A9=B4=20=ED=9A=8C=EC=9B=90=EA=B0=80=EC=9E=85=EC=9D=B4=20?= =?UTF-8?q?=EC=99=84=EB=A3=8C=EB=90=98=EC=A7=80=20=EC=95=8A=EB=8A=94=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sidepeek_backend_secret | 2 +- .../sixgaezzang/sidepeek/auth/domain/AuthProvider.java | 9 +-------- .../sidepeek/auth/dto/response/SocialLoginResponse.java | 3 --- .../auth/oauth/service/OAuth2UserServiceImpl.java | 1 - 4 files changed, 2 insertions(+), 13 deletions(-) diff --git a/sidepeek_backend_secret b/sidepeek_backend_secret index 7bc02fda..ecd89a25 160000 --- a/sidepeek_backend_secret +++ b/sidepeek_backend_secret @@ -1 +1 @@ -Subproject commit 7bc02fda45a7ce4af23be2f143092774b7715720 +Subproject commit ecd89a252c68d5ed5cc628b828a1fef6f132ced7 diff --git a/src/main/java/sixgaezzang/sidepeek/auth/domain/AuthProvider.java b/src/main/java/sixgaezzang/sidepeek/auth/domain/AuthProvider.java index 903f89c5..ab7dc57d 100644 --- a/src/main/java/sixgaezzang/sidepeek/auth/domain/AuthProvider.java +++ b/src/main/java/sixgaezzang/sidepeek/auth/domain/AuthProvider.java @@ -27,8 +27,6 @@ @NoArgsConstructor(access = AccessLevel.PROTECTED) public class AuthProvider extends BaseTimeEntity { - public static final Boolean DEFAULT_IS_REGISTRATION_COMPLETE = false; - @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "id") @@ -45,16 +43,11 @@ public class AuthProvider extends BaseTimeEntity { @Column(name = "provider_id", length = MAX_PROVIDER_ID_LENGTH) private String providerId; - @Column(name = "is_registration_complete", nullable = false, columnDefinition = "TINYINT") - private boolean isRegistrationComplete = DEFAULT_IS_REGISTRATION_COMPLETE; - @Builder - private AuthProvider(User user, ProviderType providerType, String providerId, - Boolean isRegistrationComplete) { + private AuthProvider(User user, ProviderType providerType, String providerId) { this.user = user; this.providerType = providerType; this.providerId = providerId; - this.isRegistrationComplete = isRegistrationComplete; } } diff --git a/src/main/java/sixgaezzang/sidepeek/auth/dto/response/SocialLoginResponse.java b/src/main/java/sixgaezzang/sidepeek/auth/dto/response/SocialLoginResponse.java index 49687f69..0308e915 100644 --- a/src/main/java/sixgaezzang/sidepeek/auth/dto/response/SocialLoginResponse.java +++ b/src/main/java/sixgaezzang/sidepeek/auth/dto/response/SocialLoginResponse.java @@ -15,8 +15,6 @@ public record SocialLoginResponse( String refreshToken, @Schema(description = "소셜 로그인 타입", example = "GITHUB") ProviderType providerType, - @Schema(description = "회원가입 완료 여부", example = "true") - boolean isRegistrationComplete, @Schema(description = "로그인 사용자 정보") UserSummary user ) { @@ -26,7 +24,6 @@ public static SocialLoginResponse of(LoginResponse loginResponse, AuthProvider a .accessToken(loginResponse.accessToken()) .refreshToken(loginResponse.refreshToken()) .providerType(authProvider.getProviderType()) - .isRegistrationComplete(authProvider.isRegistrationComplete()) .user(loginResponse.user()) .build(); } diff --git a/src/main/java/sixgaezzang/sidepeek/auth/oauth/service/OAuth2UserServiceImpl.java b/src/main/java/sixgaezzang/sidepeek/auth/oauth/service/OAuth2UserServiceImpl.java index f94f2bf5..12b11b3c 100644 --- a/src/main/java/sixgaezzang/sidepeek/auth/oauth/service/OAuth2UserServiceImpl.java +++ b/src/main/java/sixgaezzang/sidepeek/auth/oauth/service/OAuth2UserServiceImpl.java @@ -63,7 +63,6 @@ private AuthProvider createAuthProvider(Map attributes, .providerType(providerType) .providerId(providerId) .user(user) - .isRegistrationComplete(user.getEmail() != null && user.getNickname() != null) .build(); return authProviderRepository.save(authProvider);