title: How to set currentUser emailVerified: true in the browser (replace actual email verification)?
body: <p>I want to let the users to verify their email by entering the code after signing up that they would receive. (to replace email verification)
  What should be the way to set the "emailVerified" current user's object property to true?</p>
  
  <pre><code>if (userCodeInput === verificationCode) {
  
      currentUser.updateProfile({
      emailVerified: true,
      displayName: "name changed"
  
      }).then(function() {
      // Update successful.
      }).catch(function(error) {
      // An error happened.
      });
  }
  </code></pre>
  
  <p>works for displayName but not for emailVerified. </p>