This commit is contained in:
2024-09-09 22:55:10 +08:00
parent f804e512a9
commit 7113727284
2 changed files with 7 additions and 7 deletions

View File

@@ -25,8 +25,8 @@ fun handleGoogleSignIn(result: GetCredentialResponse, onLoginWithGoogle: (String
suspend fun GoogleLogin(context: Context, onLoginWithGoogle: (String) -> Unit) {
val credentialManager = CredentialManager.create(context)
val googleIdOption: GetGoogleIdOption = GetGoogleIdOption.Builder()
.setFilterByAuthorizedAccounts(true)
.setServerClientId("754277015802-pnua6tg8ibnjq69lv8qdcmsdhbe97ag9.apps.googleusercontent.com")
.setServerClientId("987156664714-3bpf58ldhhr0m474ep48l668ngdn7860.apps.googleusercontent.com")
.setFilterByAuthorizedAccounts(false)
.build()
val request = GetCredentialRequest.Builder().addCredentialOption(googleIdOption)
.build()