【发布时间】:2020-07-19 06:31:38
【问题描述】:
<https://stackoverflow.com/a/32254702/10026969> I am not getting this.
@override
void initState() async{
// TODO: implement initState
super.initState();
FirebaseUser user = await _auth.currentUser();
if(user!=null){
print('Already logged in with email '+ user.email);
// go to welcome screen
}
}
我无法继续使用onAuthStateChange,如何让用户保持登录状态直到他退出,如果有人知道如何实现这个,请帮助。
【问题讨论】:
-
如果答案对您有帮助,请点赞并标记为正确,谢谢!
标签: firebase flutter dart firebase-authentication