How to persist user in my app?

Hi there! i am using chat sdk in my react native app i connecting user with accestoken on login but the thung us happeining now when i am reloading app or i quit app the error consoled that connection is required1 how to deal with this and what is use case like how can u connect the user all time till tiken expires?

      await AsyncStorage.setItem(
          'sendbird_token',
          response.data.user.sendbird_session_token.token,
        );

        const user = await connect(response.data.user.username, {
          accessToken: response.data.user.sendbird_session_token.token,
        });

Hello @Vidhi_Tomar,

This issue isn’t directly related to Sendbird but lucky for you I’ve recently built out a public sample application for our Notifications product where I handle this issue.

Take a look here to see how I implemented persistence.