-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: master
Are you sure you want to change the base?
소셜 로그인 연동 #319
Conversation
struct SocialProvider { | ||
var local: Bool | ||
var facebook: Bool | ||
var google: Bool | ||
var kakao: Bool | ||
var apple: Bool | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이것도 let으로 해도 되지 않아?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Q. 이 필드중에 여러개가 true일 가능성도 있는건가?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
웅 여러개 연동 되어있으면 전부 true!
func detachKakao() async { | ||
do { | ||
try await services.userService.disconnectKakao() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
detach
, disconnect
용어 통일하는게 어때
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오키 다 disconnect로 해야겠다
// if (viewModel.currentSocialProvider?.apple == true) { | ||
// SettingsButtonItem(title: "애플 계정 연동 해제", role: .destructive) { | ||
// isDisconnectAppleAlertPresented = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
주석은 뭐지?
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Q. disconnect 하고 fetchSocialProvider를 호출하는 이유가 뭐야?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
연동 해제하면 UI가 '연동 해제' -> '연동'으로 바뀌어야해서 서버에서 계정 상태 한번 더 불러오고 있어
구글 & 카카오 계정 연동 추가