//Example for an email-password user FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser(); UserProfileChangeRequest profileUpdates = new UserProfileChangeRequest.Builder() .setDisplayName("Jane Q. User") .setPhotoUri(Uri.parse("https://example.com/jane-q-user/profile.jpg")) .build(); user.updateProfile(profileUpdates) .addOnCompleteListener(new OnCompleteListener<Void>() { @Override public void onComplete(@NonNull Task<Void> task) { if (task.isSuccessful()) { Log.d(TAG, "User profile updated. Please reauthenticate"); } } }); String password = //gather password from user AuthCredential authCredential = new EmailAuthCredential(user.getEmail(), password); user.reauthenticate(authCredential);
AuthCredential authCredential = EmailAuthProvider.getCredential(user.getEmail(), password); user.reauthenticate(authCredential);
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/0c515b8c-107c-4517-a751-daeac9db3af6%40googlegroups.com.--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/0c515b8c-107c-4517-a751-daeac9db3af6%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Firebase Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebase-talk/hd6ZtwfDeyQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/CADypTEb5YV4ptAG5fUBt%3DQsovRGJhm3SqPpdMVSVL3qVvRWqYA%40mail.gmail.com.
Hi Kato,Actually, it says it was added.The actual value of it is only updated when the user logs in. So when the user verifies their email then after you call that method it would return 'false'. If I log out and then log the user back in the correct value is displayed. I've just tested this myself. So It's definitely not fixed :)
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
--To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/0c515b8c-107c-4517-a751-daeac9db3af6%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Firebase Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebase-talk/hd6ZtwfDeyQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/CADypTEb5YV4ptAG5fUBt%3DQsovRGJhm3SqPpdMVSVL3qVvRWqYA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/CAPvht0GXL-NSWOV3krLqGZ%2Brh%3DWE2EgPENtvQadR_wX54SELgQ%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/0c515b8c-107c-4517-a751-daeac9db3af6%40googlegroups.com.
--
--
You received this message because you are subscribed to a topic in the Google Groups "Firebase Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebase-talk/hd6ZtwfDeyQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/CADypTEaT4WtpALOzYeN6mzO52yAkiSwdqknjGU9mwPu%3DAcU70w%40mail.gmail.com.
FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();
isEmailVerified = user.isEmailVerified();
final FirebaseAuth auth = FirebaseAuth.getInstance();
auth.getCurrentUser().reload().addOnSuccessListener(new OnSuccessListener<Void>() {
@Override
public void onSuccess(Void aVoid) {
FirebaseUser user = auth.getCurrentUser();
isEmailVerified = user.isEmailVerified();
Log.d(TAG,"OnCreate in Reload()- is Email Verified: " + isEmailVerified);
showToast("Is Email Verified: " + isEmailVerified);
}
});