title: Send Email Verification with Firebase using AngularFire v6
body: <p>I am trying to register User with email and password. If register function works then a mail will be send to user's email address, this mail must contain a link that the user will click to confirm email address. I have try to do this with the <em><strong>AngularFireAuth.auth.currentUser.sendEmailVerification()</strong></em> function it doesn't work: This version of AngularFire/Firebase does'nt support this method. Can you help me ?</p>
  <pre><code>import {Injectable, NgZone} from '@angular/core';
  import {AngularFireAuth} from '@angular/fire/auth';
  import {first} from 'rxjs/internal/operators/first';
  import * as firebase from 'firebase';
  import {AngularFirestore} from '@angular/fire/firestore';
  
  @Injectable({
    providedIn: 'root'
  })
  export class AuthService {
    public userId: string;
  
    constructor(
        private afAuth: AngularFireAuth,
        private afStore: AngularFirestore,
        public ngZone: NgZone
    ) { }
  
    getUser(): Promise&lt;firebase.User&gt;{
      return this.afAuth.authState.pipe(first()).toPromise();
    }
    loginWithEmailAndPassword(email: string, password: string): Promise&lt;firebase.auth.UserCredential&gt;{
      return this.afAuth.signInWithEmailAndPassword(email, password);
    }
    async registerWithEmailAndPassword(email: string, password: string): Promise&lt;firebase.auth.UserCredential&gt;{
      const newUserCredential: firebase.auth.UserCredential = await this.afAuth.createUserWithEmailAndPassword(email, password);
      this.afStore.collection('users').doc(`${newUserCredential.user.uid}`).set({
        uid: newUserCredential.user.uid,
        email: newUserCredential.user.email,
        created_at: firebase.firestore.FieldValue.serverTimestamp()
      }).then(function() {
        console.log(&quot;user is registered&quot;);
        this.sendEmailVerification();
      }).catch(function(error) {
        console.error(&quot;Error adding document: &quot;, error);
      });
      return newUserCredential;
    }
  
    async sendEmailVerification() {
      
    }
  
    resetPassword(email: string): Promise&lt;void&gt;{
      return this.afAuth.sendPasswordResetEmail(email);
    }
  
    logout(): Promise&lt;void&gt;{
      return this.afAuth.signOut();
    }
  
    async createPersonalProfile(){
  
    }
  }
  </code></pre>