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

[Feature/#17] : 카카오 로그인, 구글 로그인 구현 #23

Merged
merged 60 commits into from
Jan 16, 2025

Conversation

youjin09222
Copy link
Contributor

@youjin09222 youjin09222 commented Jan 12, 2025

✅ 𝗖𝗵𝗲𝗰𝗸-𝗟𝗶𝘀𝘁

  • merge할 브랜치의 위치를 확인해 주세요.(main❌/develop⭕)
  • 리뷰가 필요한 경우 리뷰어를 지정해 주세요.
  • 리뷰는 PR이 올라오면 최대한 빠르게 진행합니다.
  • P1 단계의 리뷰는 빠르게 확인 후 반영합니다.
  • Approve된 PR은 assigner가 머지하고, 수정 요청이 온 경우 수정 후 다시 push를 합니다.

📌 𝗜𝘀𝘀𝘂𝗲𝘀

📎 𝗪𝗼𝗿𝗸 𝗗𝗲𝘀𝗰𝗿𝗶𝗽𝘁𝗶𝗼𝗻

  • 카카오 로그인 구현
  • 구글 로그인 구현
    • Credential Manager 사용

📷 𝗦𝗰𝗿𝗲𝗲𝗻𝘀𝗵𝗼𝘁

login.mp4

💬 𝗧𝗼 𝗥𝗲𝘃𝗶𝗲𝘄𝗲𝗿𝘀

늦어서 죄송합니다..

추가해야하는 파일 밑에 링크 참고해주세요!

@youjin09222 youjin09222 added ⭐ [FEAT] 새로운 기능 구현 🐰 유진 뉴진스 labels Jan 12, 2025
@youjin09222 youjin09222 self-assigned this Jan 12, 2025
@youjin09222 youjin09222 requested a review from a team as a code owner January 12, 2025 00:52
Copy link
Contributor

@gaeulzzang gaeulzzang left a comment

Choose a reason for hiding this comment

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

SHA 키랑 싸우느라 고생 많으셨습니답 ㅠㅠ 임포트문만 제거해주면 될 것 같아여 ❤️

Comment on lines 53 to 55
val signInRequest = com.google.android.gms.auth.api.identity.BeginSignInRequest.builder()
.setGoogleIdTokenRequestOptions(
com.google.android.gms.auth.api.identity.BeginSignInRequest.GoogleIdTokenRequestOptions.builder()
Copy link
Contributor

Choose a reason for hiding this comment

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

P1: 요거 임포트 해주세요!!

Copy link
Contributor

Choose a reason for hiding this comment

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

P2: Credential Manager로 리팩해보면 좋을 것 같아요!!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

네ㅔㅔㅔ 리팩해놓겠슴다ㅏㅏ

Copy link
Member

@Eonji-sw Eonji-sw left a comment

Choose a reason for hiding this comment

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

빠르게 잘하셨는걸용 아래 pr 참고해서 보완해도 좋을 것 같네욤
Team-Wable/WABLE-ANDROID#42

LaunchedEffect(loginViewModel.sideEffects) {
loginViewModel.sideEffects.collect { sideEffect ->
when (sideEffect) {
is LoginSideEffect.NavigateToHome -> navigateToHome()
is LoginSideEffect.NavigateSignUp -> navigateToSignUp(sideEffect.authId)
is LoginSideEffect.ShowToast -> context.toast(sideEffect.message)
Copy link
Member

Choose a reason for hiding this comment

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

P3 : 실패했을 때 뜨는 스낵바나 다이얼로그 GUI 필요할듯요

Copy link
Contributor Author

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.

P1 : 로컬에 token 저장하는 로직 필요할 것 같아요 member id랑.. refresh token은 안받나요?

Copy link
Contributor Author

@youjin09222 youjin09222 Jan 15, 2025

Choose a reason for hiding this comment

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

서버 연결 로직 작성 시 발급받는 accessToken과 refreshToken를 저장하려고 하는데
이것과 별개로 카카오 및 구글 토큰도 저장해야하나요??

Copy link
Member

Choose a reason for hiding this comment

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

아아 생각해보니 아직 서버 연결 전이네용 ㅋㅋㅋ 서버 연결 기준으로 말한거였어요! 흠 그래도 로컬에 토큰 제외하고 유저 정보 저장하는건 구현해놓으면 좋을 것 같아용 member id, nickname, ...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

넵! 해당 부분 수정하겠습니다!!

Copy link
Contributor

@twogarlic twogarlic left a comment

Choose a reason for hiding this comment

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

고생 많으셧쑴니다ㅏㅏ 왕 잘하셧는데여

@youjin09222 youjin09222 added the ♻️ [REFACTOR] 코드 리팩토링 label Jan 16, 2025
@youjin09222 youjin09222 merged commit 0450000 into develop Jan 16, 2025
1 check passed
@gaeulzzang gaeulzzang deleted the feature/#17-social-login branch January 22, 2025 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⭐ [FEAT] 새로운 기능 구현 🐰 유진 뉴진스 ♻️ [REFACTOR] 코드 리팩토링
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] : 소셜 로그인 구현
4 participants