baumblatt / capacitor-firebase-auth

Capacitor Firebase Authentication Plugin
MIT License
261 stars 129 forks source link

Any way to know when the user cancels the popup? Or when something went wrong? #152

Closed baptisteArno closed 3 years ago

baptisteArno commented 3 years ago

How can I detect when the user canceled the signup flow? Here the error function is never triggered:

cfaSignIn(
      "facebook.com"
    ).subscribe({
      next(x) {
        console.log("got value " + x);
      },
      error(err) {
        console.error("something wrong occurred: " + err);
      },
      complete() {
        console.log("done");
      },
    });
baptisteArno commented 3 years ago

In fact, this code works! My bad.