我尝试统一获得一个火基值,但行“ auth”。上下文中不存在
Firebase.Auth.FirebaseUser user = auth.CurrentUser;
我如何获得auth.currentuser?
这是教程https://firebase.google.com/docs/auth/admin/verify-id-tokens?hl=es-419
的链接答案 0 :(得分:2)
解决方案:
Firebase.Auth.FirebaseAuth auth = Firebase.Auth.FirebaseAuth.DefaultInstance;
Firebase.Auth.FirebaseUser user = auth.CurrentUser;