Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase 3 - javascript - get facebook accessToken after login

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

like image 286
user2976753 Avatar asked Oct 15 '25 08:10

user2976753


1 Answers

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.

like image 116
user2976753 Avatar answered Oct 17 '25 00:10

user2976753



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!