Skip to content

Commit baa2d51

Browse files
SUPERCILEXsamtstern
authored andcommitted
When linking two accounts, use the provider the user last added to their account instead of the first one (#701)
1 parent 6d2c1ae commit baa2d51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auth/src/main/java/com/firebase/ui/auth/provider/ProviderUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public String then(@NonNull Task<ProviderQueryResult> task) throws Exception {
6868

6969
List<String> providers = task.getResult().getProviders();
7070
return providers == null || providers.isEmpty()
71-
? null : providers.get(0);
71+
? null : providers.get(providers.size() - 1);
7272
}
7373
});
7474
}

0 commit comments

Comments
 (0)