Created
June 19, 2020 14:31
-
-
Save serefercelik/f2149db6fff1e9e33d115e567ea5b02a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FirebaseUser firebaseUser = FirebaseAuth.getInstance().getCurrentUser(); | |
if (firebaseUser != null) { | |
for (UserInfo userInfo : firebaseUser.getProviderData()) { | |
if (userInfo.getProviderId().equals("google.com")) { | |
Log.d(TAG, "User is signed in with Google"); | |
} else if(userInfo.getProviderId().equals("facebook.com")) { | |
Log.d(TAG, "User is signed in with Facebook"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment