File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
auth/src/main/java/com/firebase/ui/auth Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -320,6 +320,10 @@ public Task<AuthResult> silentSignIn(@NonNull Context context,
320
320
final GoogleSignInOptions finalGoogleOptions = googleOptions ;
321
321
return GoogleApiUtils .getCredentialsClient (context )
322
322
.request (new CredentialRequest .Builder ()
323
+ // We can support both email and Google at the same time here because they
324
+ // are mutually exclusive. If a user signs in with Google, their email
325
+ // account will automatically be upgraded (a.k.a. replaced) with the Google
326
+ // one, meaning Smart Lock won't have to show the picker UI.
323
327
.setPasswordLoginSupported (email != null )
324
328
.setAccountTypes (google == null ? null :
325
329
ProviderUtils .providerIdToAccountType (GoogleAuthProvider .PROVIDER_ID ))
You can’t perform that action at this time.
0 commit comments