How to Preserve WebView Auth Cookies

I have an app that wraps a web app and have come across what seems to be a common problem. When the app is restarted, the authentication details are lost.
After reading various discussions from the past couple of years, I am currently thinking the best way to handle this is to have the web app pass the auth details to RN via postMessage and have RN save them so they can be retrieved on startup.
Is this the best option or is there some simpler option available now?
It seems like such a common use case, I thought it would have been solved by now.

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