There is a certain url that is loaded into the WebView when the application is started, the user logs on and the cookie is updated, the token and other data are added to authenticate the user session.

Is there a mechanism to take this cookie for further work with it using fetch ()?

1 answer 1

While using the WebView module, it is possible to send requests to the server via fetch ()

For example: If you logged in to an account on a website, the cookies are saved and you can make requests through fetch () and manipulate data during the session.

The algorithm is clearly shown in this repository using the react-native-cookies library: