Hello
We use the react native okta SDK for our authentication layer in our app.
Once logged in, we make use of getAccessToken
and refreshTokens
methods to respectively
- fullfil our API requests with an access token
- refresh the access token when it expires
All this works perfectly at first, but after some time (can occur in less than an hour), the SDK methods mentioned above are throwing an error:
User is not authenticated, cannot perform the specific action
When digging into the native code of the SDK, we found out that for these methods, the error occurs when the stateStoreManager is set tonil
while it shouldn’t.
What could cause such a behaviour?
I posted a detailed issue to the okta-react-native github repository.
Thanks for your help