Relative Content

Tag Archive for react-nativefirebase-authenticationexpo

Expo react native firebase access token expires

After searching the web, I found that the Firebase auth tokens automatically refresh every hour. That’s a function of the SDK, and you don’t have to do anything to enable it, but it seems that my SDK inside my react native expo app doesn’t work like that. I have doubts that it’s because I’m using ReactNativeAsyncStorage as a persistent unit in my app. So I’m writing this question to figure out what’s the best way to refresh my access token in my case? Is the best way to check if it has expired in my react toolkit query?

Expo react native firebase access token expires

After searching the web, I found that the Firebase auth tokens automatically refresh every hour. That’s a function of the SDK, and you don’t have to do anything to enable it, but it seems that my SDK inside my react native expo app doesn’t work like that. I have doubts that it’s because I’m using ReactNativeAsyncStorage as a persistent unit in my app. So I’m writing this question to figure out what’s the best way to refresh my access token in my case? Is the best way to check if it has expired in my react toolkit query?