SecureStore delete my token each time I refresh the

Please provide the following:

  1. SDK Version: 36
  2. Platforms(Android/iOS/web/all): IOS

I have problem retrieving my authentication token from SecureStore while I develop my app in the expo client.

I’m trying to implement this authentication flow from react navigation using secureStore instead of Async storage: https://reactnavigation.org/docs/en/4.x/auth-flow.html

Currently, when I login my token is stored in SecureStore. I know this because I can then use it for authorising my requests.

My problem is when the expo app refreshes, the token seems to disappear so I have to sign in again.

Does the expo client app refreshing clear the token or is there a bug in my code:

 useEffect(() => {
    _bootstrapAsync = async () => {
      const token = await SecureStore.getItemAsync('token')
      navigation.navigate(token ? 'App' : 'Auth');
      
    };
    _bootstrapAsync();
  }, [])