use*_*591 5 firebase firebase-authentication
有时在我的应用程序中,每当我从 Firebase 获取登录的用户提供商数据时,链接的 Google 帐户就会为空或为空。
在 firebase 中,我已将我的 google 帐户与登录链接,如您在控制台中看到的:

在项目设置中,我启用了每封电子邮件多个帐户。
您是否对用户个人资料和电子邮件都使用了 oAuth 范围:
var provider = new firebase.auth.OAuthProvider('google.com');
provider.addScope('profile');
provider.addScope('email');
firebase.auth().signInWithPopup(provider).then(function(result) {
var user = result.user;
});
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1098 次 |
| 最近记录: |