Firebase $authWithOAuthRedirect doesn't call $onAuth without page refresh

后端 未结 2 1095
清酒与你
清酒与你 2021-01-19 05:35

I have a simple Firebase Facebook OAuth login set like below by following the official tutorial for the Ionic Firebase Facebook login.

The problem is that once I cli

2条回答
  •  时光取名叫无心
    2021-01-19 06:11

    Posted on the github issues, but will reply here as well.

    This only happens in the browser using $authWithOAuthRedirect. The example was intended for cordova apps, so this really shouldn't be an issue.

    But if you really need it, you could just skip the redirect and use a popup.

        Auth.$authWithOAuthPopup(authMethod).then(function(authData) {
          console.dir(authData);
        });
    

提交回复
热议问题