Skip to content
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

Facebook access token #142

Open
csulit opened this issue Apr 29, 2021 · 6 comments
Open

Facebook access token #142

csulit opened this issue Apr 29, 2021 · 6 comments

Comments

@csulit
Copy link

csulit commented Apr 29, 2021

How to get the user access token?

@jwainwright87
Copy link

I am looking for this answer too. The Firebase documentation show how to gain the Facebook access token if you are logging in with signInWithPopup. However, this is built into the Firebase UI code.

I wonder if there is a function to get the access token of a signed in user?

@csulit
Copy link
Author

csulit commented May 20, 2021

I am looking for this answer too. The Firebase documentation shows how to gain the Facebook access token if you are logging in with signInWithPopup. However, this is built into the Firebase UI code.

I wonder if there is a function to get the access token of a signed-in user?

I already figured it out I will share it with you tomorrow. I don't have access to pc now.

@thepors
Copy link

thepors commented Jun 6, 2021

@csulit can you share how did you figured it? Thank you for advance

@csulit
Copy link
Author

csulit commented Jun 6, 2021

@csulit can you share how did you figured it? Thank you for advanceScreen Shot 2021-06-06 at 3 51 59 PM
Keep in mind that it will only be available on the 1st sign-in/login. What I did is I store it on local storage temporarily.

@thepors
Copy link

thepors commented Jun 6, 2021

@csulit can you share how did you figured it? Thank you for advanceScreen Shot 2021-06-06 at 3 51 59 PM
Keep in mind that it will only be available on the 1st sign-in/login. What I did is I store it on local storage temporarily.

Thank you so much. Is it safe if we store an access token in localstorage since it is can be read just by inspect the browser?

@csulit
Copy link
Author

csulit commented Jun 9, 2021

I actually used localstorage to store the access token temporarily. This is just my test to check if I'm getting the token.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants