【发布时间】:2021-07-19 16:17:38
【问题描述】:
如果我的 createUserWithEmailAndPassword 函数的结构是这样的
await auth.createUserWithEmailAndPassword(email, password).then((userCredential) => {
code stuff...
return promise
}).then(() => {
...
}).catch(() => {
...
}).finally(() => {
...
})
onAuthStateChanged 观察者在承诺链中什么时候会启动?
【问题讨论】:
-
这似乎是您可以通过一些控制台日志自己观察到的。
标签: firebase firebase-authentication