Skip to content

Commit

Permalink
(Android) Fix retrieval of auth provider ID.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpa99c committed Jun 1, 2020
1 parent 4457439 commit 84f36bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/android/FirebasePlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -1102,7 +1102,7 @@ private void extractAndReturnUserInfo(final CallbackContext callbackContext) thr
returnResults.put("phoneNumber", user.getPhoneNumber());
returnResults.put("photoUrl", user.getPhotoUrl() == null ? null : user.getPhotoUrl().toString());
returnResults.put("uid", user.getUid());
returnResults.put("providerId", user.getProviderId());
returnResults.put("providerId", user.getIdToken(false).getResult().getSignInProvider());
returnResults.put("isAnonymous", user.isAnonymous());

user.getIdToken(true).addOnSuccessListener(new OnSuccessListener<GetTokenResult>() {
Expand Down

0 comments on commit 84f36bf

Please sign in to comment.