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

@@ -1,13 +1,13 @@
{ {
"project_info": { "project_info": {
"project_number": "150225239581", "project_number": "987156664714",
"project_id": "riderp-30072", "project_id": "riderpro-a9b22",
"storage_bucket": "riderp-30072.appspot.com" "storage_bucket": "riderpro-a9b22.appspot.com"
}, },
"client": [ "client": [
{ {
"client_info": { "client_info": {
"mobilesdk_app_id": "1:150225239581:android:422283723db3908bdfd0f4", "mobilesdk_app_id": "1:987156664714:android:2c29c11b9cd8be78b9f873",
"android_client_info": { "android_client_info": {
"package_name": "com.aiosman.riderpro" "package_name": "com.aiosman.riderpro"
} }
@@ -15,7 +15,7 @@
"oauth_client": [], "oauth_client": [],
"api_key": [ "api_key": [
{ {
"current_key": "AIzaSyDNGmfzdCTJ0PxQ3yTwdWhRaDhqS1JDWaQ" "current_key": "AIzaSyB9zLZ80Bz6OrAWCCZxM8BK75dWS7RROBM"
} }
], ],
"services": { "services": {

View File

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