小编Leo*_*Tan的帖子

Firebase Auth,如何知道新用户注册,而不是现有用户登录?

我的用例是,我想让新注册的用户充实他们的名字等基本信息.所以我希望这样做:

firebase.auth().onAuthStateChanged(function(user) {
  if (user) {
    // User is signed in.
    if (some indicator tells me it is newly signed up user)
        {redirect to a form to fill in more info}
  } else {
    // No user is signed in.
  }
});
Run Code Online (Sandbox Code Playgroud)

我检查了文档,找不到与此相关的任何内容......

我在这里先向您的帮助表示感谢.

firebase firebase-authentication

8
推荐指数
1
解决办法
3950
查看次数

标签 统计

firebase ×1

firebase-authentication ×1