SecureStore deletes my token each time I refresh the expo client

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:

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:

componentDidMount() {

  _bootstrapAsync = () => {
    SecureStore.getItemAsync("token").then(token => {
      this.props.navigation.navigate(token ? "App" : "Auth");

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