title: How to update the details of the user in Firebase Authentication
body: <p>I am trying to develop an app in android studio using firebase where user verifies their email address after signup. But even after verifying the email address, whenever I open the app again, it forwards me to the send email verification code page. However, if I clear app data, the same problem does not exist.</p>
  
  <p>I tried using AuthStateListener (without knowing much about it) but it did not work.</p>
  
  <p>here is the code that I tried. I also tried it without the authstatelistener, but the same problem continued</p>
  
  <pre><code>   mAuth=FirebaseAuth.getInstance();
      user=mAuth.getCurrentUser();
      authStateListener=new FirebaseAuth.AuthStateListener() {
          @Override
          public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) {
              if(!user.isEmailVerified()){
                  startActivity(new Intent(HomePage.this,VerifyEmail.class));
              }
          }
      };
  </code></pre>
  
  <p>It leads to the verify email page if I open it in the phone where I signed up. But after clearing the data, it does not forward me to that page.</p>