【发布时间】:2021-02-28 09:55:35
【问题描述】:
我正在使用调用 firbase.auth().createUserWithEmailAndPassword(email, password); 的反应本机注册表单
我在 trycatch 中使用如下代码:
const result = await firebase
.auth()
.createUserWithEmailAndPassword(email, password);
console.log(result.user.stsTokenManager);
如果我控制台日志result.user 我看到一个 stsTokenManager 对象,其中包含有关提供的令牌的信息,但如果我尝试控制台日志result.user.stsTokenManager 我得到未定义。
如果有人知道发生这种情况的原因以及为什么我无法访问结果中的特定对象,那就太好了。
【问题讨论】:
标签: firebase react-native firebase-authentication