Expo Facebook Auth Method/Access Token

Anybody have any experience using Expo’s Facebook Oauth method logInWithReadPermissionsAsync for REACT NATIVE. My understanding is that you get one access token and that token should remain valid for minimum 60 days but every time I login, I am getting a new access token and I can’t seem to figure out why this is happening. I haven’t ejected my App or anything. I just really want to understand what I might be doing wrong. I’m trying to create a persistent user but I need a constant access token to do this.

Hey @stefanomartinengo,

Getting a new token every time you authenticate with Facebook is the expected behavior. You’ll want to make use of AsyncStorage to save the token so you can then reuse the token until it expires. 🚧 AsyncStorage · React Native

After you save the token via AsyncStorage, you’ll fetch it and then pass it to your authentication logic.

Cheers,

Adam

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.