Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

소셜 로그인 연동 #319

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

chaemin2001
Copy link
Contributor

구글 & 카카오 계정 연동 추가

@chaemin2001 chaemin2001 requested a review from a team as a code owner October 30, 2024 13:55
Comment on lines +10 to +16
struct SocialProvider {
var local: Bool
var facebook: Bool
var google: Bool
var kakao: Bool
var apple: Bool
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이것도 let으로 해도 되지 않아?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Q. 이 필드중에 여러개가 true일 가능성도 있는건가?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

웅 여러개 연동 되어있으면 전부 true!

Comment on lines 21 to 23
func detachKakao() async {
do {
try await services.userService.disconnectKakao()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

detach, disconnect 용어 통일하는게 어때

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오키 다 disconnect로 해야겠다

Comment on lines +37 to +39
// if (viewModel.currentSocialProvider?.apple == true) {
// SettingsButtonItem(title: "애플 계정 연동 해제", role: .destructive) {
// isDisconnectAppleAlertPresented = true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

주석은 뭐지?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이건 서버쪽에서 애플로그인 남은 작업 있어서 일단 주석해놓고 PR 먼저 올린걸로 알고있으

func detachGoogle() async {
do {
try await services.userService.disconnectGoogle()
try await services.userService.fetchSocialProvider()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Q. disconnect 하고 fetchSocialProvider를 호출하는 이유가 뭐야?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

연동 해제하면 UI가 '연동 해제' -> '연동'으로 바뀌어야해서 서버에서 계정 상태 한번 더 불러오고 있어

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants