public static void Initialize(IFirebaseAuth firebaseAuth)
{
_firebaseAuth = firebaseAuth;
var handle = _firebaseAuth.AddAuthStateListener (HandleAuthStateDidChangeListener);
}
I create a user:
var user = await _firebaseAuth.SignInWithEmailAndPasswordAsync(email, password);
await user.SendEmailVerificationAsync();
User gets created correctly, AuthStateListener gets called as expected and the verification email arrives.
Then I complete verification.
At this point I expect AuthStateListener to be called again, but this does not happen, and _firebaseAuth.CurrentUser.IsEmailVerified stays false. If I sign in user again, it gets updated and becomes true.
What would be the correct way to either monitor email verification status via the listener or otherwise to update the CurrentUser object from Firebase ?
Hello,
I might simply be doing something wrong here.
Given:
I create a user:
User gets created correctly, AuthStateListener gets called as expected and the verification email arrives.
Then I complete verification.
At this point I expect AuthStateListener to be called again, but this does not happen, and
_firebaseAuth.CurrentUser.IsEmailVerified
staysfalse
. If I sign in user again, it gets updated and becomestrue
.What would be the correct way to either monitor email verification status via the listener or otherwise to update the CurrentUser object from Firebase ?
Many thanks