Skip to content
This repository was archived by the owner on Dec 30, 2024. It is now read-only.
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Review comments
  • Loading branch information
samtstern committed Apr 1, 2020
commit 592b65221e52ad0f52dcc5385be04493c94b058a
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class FirebaseAuthSnippets {
public void getUserByFederatedId() throws Exception {
// [START get_user_by_federated_id]
UserRecord user = FirebaseAuth.getInstance().getUserByFederatedIdAsync("google.com", "google_uid1234").get();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be getUserByProviderUidAsync (similar to the other ports). Yeah, I see that the upstream PR where you got this from is also incorrect and have flagged that.

System.out.println("Successfully fetched user data: " + user);
System.out.println("Successfully fetched user data: " + user.getUid());
// [END get_user_by_federated_id]
}

Expand All @@ -43,7 +43,7 @@ public void updateUserLinkFederated() throws Exception {
.build());

UserRecord user = FirebaseAuth.getInstance().updateUserAsync(update).get();
System.out.println("Successfully updated data: " + user);
System.out.println("Successfully updated data: " + user.getUid());
// [END update_user_link_federated]
}

Expand All @@ -58,7 +58,7 @@ public void updateUserUnlinkFederated() throws Exception {
.setDeleteProviders(providers);

UserRecord user = FirebaseAuth.getInstance().updateUserAsync(update).get();
System.out.println("Successfully updated data: " + user);
System.out.println("Successfully updated data: " + user.getUid());
// [END update_user_unlink_federated]
}
}