New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Include Facebook accessToken #805
Comments
using redirect, I found it to be in the auth.facebook object const token: any = auth.facebook; if you do auth.facebook.accessToken you might get an error. |
I replied to this and then I considered it nonsense and deleted it but now I am not so sure again. In the end I don't really like how So
I don't know the exact properties, but later, if you come back in the day, and are signed in "automatically" then that same object becomes
Infact, that first object above is hidden from you. According to the Anyway all I wanted to say here was, is if you look at That returns a possible credential property on the error.
Is it possible to add a similar I am out of my depth on the whole auth process but this ticket is high on a specific google search and wanted to put down my related findings when attempting to access these tokens. |
I'm successfully getting an access token with Google using the method @ealvarezv mentioned, but only when I sign in with
However when I try to use it like so with a google api:
I am getting an insufficient authentication scope:
That's a whole other issue that I need help with, might be related? |
Just to be clear, it looks like AngularFire isn't returning the proper access token needed to call Google APIs:
|
AngularFire2 no longer provides these auth methods. If this problem still persists open a question on Stackoverflow for Firebase Authentication. |
I can't find where this is available anywhere so I would like to request that it be added. I can get it if I add the firebase script directly and call it like this:
And this seems to work for me too,
r.credential.accessToken
is what I want (af is AngularFire):I see that the state value returned in the promise from the
login()
using a pop-up does have a facebook property with the access token, so maybe there's no way to get the data except when logging in with a popup? Trying redirect I never got anything with getRedirectResult() either...The text was updated successfully, but these errors were encountered: