javascript - React-Native: LocalStorage deleted when app reloaded when using domStorageEnabled -
i have @ moment small log in system stores asyncstorage session token , refresh token. after logged in sent page dashboard i'm getting asyncstorage session , refresh token , passing them link in webview. way how webview works me passing domstorageenabled={true} deleting storage when app closed user needs again log in. know way how manage problem?
render() { if (this.state.access_token = null) { return ( <splashscreen visible={true}/> ); } else { let source = {uri: `myurl/auth/login?access_token=${this.state.access_token}&refresh_token=${this.state.refresh_token}`}; return ( <webview source={source} domstorageenabled={true} /> ); } }
Comments
Post a Comment