firebaseui-web-react icon indicating copy to clipboard operation
firebaseui-web-react copied to clipboard

Facebook access token

Open csulit opened this issue 4 years ago • 6 comments
trafficstars

How to get the user access token?

csulit avatar Apr 29 '21 18:04 csulit

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?

jwainwright87 avatar May 13 '21 08:05 jwainwright87

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.

csulit avatar May 20 '21 14:05 csulit

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

thepors avatar Jun 06 '21 06:06 thepors

@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.

csulit avatar Jun 06 '21 07:06 csulit

@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?

thepors avatar Jun 06 '21 17:06 thepors

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

csulit avatar Jun 09 '21 17:06 csulit