title: Ionic4: Email Passwordless Auth - user is not registered
body: <p>I want users to login passwordless through an email link in my webapp. In the future, I also want to make this work on android/ios, but for now I am happy to make this work on web. 
  I am able to send the email, but the click on the link does not result in that the user is being created in Firebase.  </p>
  
  <p>I tried many tutorials, now I am using those two great tutorials for my work: 
  <a href="https://www.youtube.com/watch?v=BAG7Oig34RY&amp;t=43s" rel="nofollow noreferrer">https://www.youtube.com/watch?v=BAG7Oig34RY&amp;t=43s</a>
  <a href="https://medium.com/@vivek040997/how-to-implement-firebase-email-link-passwordless-login-in-ionic-4-for-android-4c61f331c4a0" rel="nofollow noreferrer">https://medium.com/@vivek040997/how-to-implement-firebase-email-link-passwordless-login-in-ionic-4-for-android-4c61f331c4a0</a></p>
  
  <p>Home HTML: </p>
  
  <pre><code>    &lt;ion-item&gt;
      &lt;ion-label position="floating"&gt;Email&lt;/ion-label&gt;
      &lt;ion-input [(ngModel)]="email"&gt;&lt;/ion-input&gt;
    &lt;/ion-item&gt;
  &lt;ion-button
      expand="block"
      [disabled]="emailSent"
      (click)="sendEmailLink(email)"
      &gt;Login&lt;/ion-button
    &gt;
  </code></pre>
  
  <p>Home.page.ts</p>
  
  <pre><code>    import { Component } from '@angular/core';
  import { AngularFireAuth } from '@angular/fire/auth';
  import { Platform, AlertController, NavController } from "@ionic/angular";
  
  @Component({
    selector: 'app-home',
    templateUrl: 'home.page.html',
    styleUrls: ['home.page.scss'],
  })
  export class HomePage {
    hasVerifiedEmail = true;
    sentTimestamp;
    email;
    emailSent = false;
    errorMessage;
    user;
  
    constructor(public afAuth: AngularFireAuth,private alertController: AlertController,
      private navCtrl: NavController) {
  
      }
  
  
    async sendEmailLink() {
      var actionCodeSettings = {
        // URL you want to redirect back to. Enter the Firebase hosting url here.
        url: "http://localhost:8101/home",
        handleCodeInApp: true,
        iOS: {
          bundleId: "com.firebaseemail.linkauth"
        },
        android: {
          packageName: "com.firebaseemail.linkauth"
        }
      };
  try {
        await this.afAuth.auth.sendSignInLinkToEmail(
          this.email,
          actionCodeSettings
        );
        this.presentAlert("Mail Sent", "Check your email for login link");
        this.emailSent = true;
      } catch (err) {
        console.error(err);
        this.presentAlert("Error", "There was an error in sending mail");
        this.errorMessage = err.message;
      }
    }
  
    async presentAlert(title, message) {
      const alert = await this.alertController.create({
        header: title,
        message: message,
        buttons: ["OK"]
      });
  await alert.present();
    }
  
  }
  </code></pre>
  
  <p>I manage to get the email being sent to the email. I also have the localhost url whitelisted in my firebase configuration. 
  But I guess I miss the function to actually register the user? I just don't understand how to add this part. </p>
  
  <p>Thanks so much for the help!</p>