Skip to content

Commit 67fc272

Browse files
Update auth/app/src/main/java/com/google/firebase/quickstart/auth/kotlin/GoogleSignInActivity.kt
Co-authored-by: Rosário P. Fernandes <[email protected]>
1 parent c41c4e5 commit 67fc272

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

auth/app/src/main/java/com/google/firebase/quickstart/auth/kotlin/GoogleSignInActivity.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,10 @@ class GoogleSignInActivity : AppCompatActivity() {
6565
// [START create_credential_manager_request]
6666
// Instantiate a Google sign-in request
6767
val googleIdOption = GetGoogleIdOption.Builder()
68+
// Your server's client ID, not your Android client ID.
69+
.setServerClientId(getString(R.string.default_web_client_id))
70+
// Only show accounts previously used to sign in.
6871
.setFilterByAuthorizedAccounts(true)
69-
.setServerClientId(baseContext.getString(R.string.default_web_client_id))
7072
.build()
7173

7274
// Create the Credential Manager request

0 commit comments

Comments
 (0)