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(

        const user = await connect(, {

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.