且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从 angularfire2 获取当前登录的身份验证状态/用户

更新时间:2023-11-25 11:30:46

当前身份验证状态可从注入的 FirebaseAuth 获得.您可以获得实际的认证数据 auth.getAuth()

current authentication state is available from the injected FirebaseAuth. You can get the actual auth data auth.getAuth()

参见:https://github.com/angular/angularfire2/blob/master/src/providers/auth.ts#L99