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

[#1011] Google Sign In 설정 #1014

Open
wants to merge 12 commits into
base: feature/#1011-login-mock-server
Choose a base branch
from

Conversation

l2hyunwoo
Copy link
Member

What is this issue?

  • AuthActivity에 네이티브 Google Sign-In 관련 설정을 추가하였습니다.
  • TODO: PlaygroundAuth 떼야합니다.

Reference

@l2hyunwoo l2hyunwoo self-assigned this Jan 3, 2025
@l2hyunwoo l2hyunwoo requested a review from a team as a code owner January 3, 2025 10:10
Copy link

height bot commented Jan 3, 2025

Link Height tasks by mentioning a task ID in the pull request title or commit messages, or description and comments with the keyword link (e.g. "Link T-123").

💡Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.

@l2hyunwoo l2hyunwoo changed the base branch from develop to feature/#1011-login-mock-server January 3, 2025 10:10
Copy link
Member

@leeeyubin leeeyubin left a comment

Choose a reason for hiding this comment

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

만능 개발자..! ㄷㄷㄷ 잘 사용하겠습니다!! 감사합니다🙇‍♀️

Comment on lines 76 to 77
GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN).requestIdToken("SERVER_CLIENT_ID").requestEmail()
.build()
Copy link
Member

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.

그리구 하나 걱정됐던 건 GoogleSignInOptions가 deprecated 됐더라구요
관련 공식 문서인 것 같은데 일단은 현재 코드대로 가도 되겠죠,,,,?

추가로 제가 참고했던 블로그도 남기겠습니다..!

Copy link
Member Author

Choose a reason for hiding this comment

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

일단 이거 CredentialManager 사용하는걸로 마이그레이션 해봤어요!! 확인해주셔서 감사해요

Comment on lines +6 to +16
suspend inline fun <R> suspendRunCatching(block: () -> R): Result<R> {
return try {
Result.success(block())
} catch (t: TimeoutCancellationException) {
Result.failure(t)
} catch (c: CancellationException) {
throw c
} catch (e: Throwable) {
Result.failure(e)
}
}
Copy link
Member

Choose a reason for hiding this comment

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

오호 이 함수를 추가한 이유는 더 상세한 에러를 잡기 위함인가요...?

Copy link
Member Author

Choose a reason for hiding this comment

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

정확히는 저 CancellationException은 이 코루틴에서 에러가 발생했을 때 다른 코루틴으로의 예외전파를 시키는 것을 막지 않게 하기 위해서 추가한 코드에요

Reference - Kotlin/kotlinx.coroutines#1814

@l2hyunwoo l2hyunwoo force-pushed the feature/#1011-google-sign-in branch from 8126336 to 995e4d8 Compare January 3, 2025 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants