[iOS] stateStoreManager is nil causing token related methods to throw

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

  1. fullfil our API requests with an access token
  2. 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 to nil 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

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