Firebase 3 - javascript - 登录后获取Facebook accessToken [英] Firebase 3 - javascript - get facebook accessToken after login
问题描述
在Firebase 2中,我可以通过 accessToken guide / login / facebook.html#section-logging-inrel =nofollow>这个方法,只需要使用 firebase reference ,例如:
firebase.getAuth()。facebook.accessToken
现在,我怎样才能在版本3 (网络)?
注意,我需要它在Promise之外 signInWithPopup
感谢解决方案
我刚刚找到这个关于文档...为什么?由于Firebase身份验证不再保留访问令牌
,因此您的应用程序必须自行完成此操作(如果需要的话)。
In Firebase 2 I was able to get facebook accessToken
from anywhere after login by this way, just using the firebase reference, eg:
firebase.getAuth().facebook.accessToken
Now, how can I get that in version 3 (web)?
Note, I need it outside of the Promise signInWithPopup
Thanks
I just found this on documentation... Why? :(
Since Firebase Authentication no longer persists the access token, your application will have to do so itself, if needed.
这篇关于Firebase 3 - javascript - 登录后获取Facebook accessToken的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!