Native app and webview web page authentication settings

embed another H5-developed system in the APP developed by Andriod, embedded by webview.
you can log in to the H5 system without logging in after logging in Andriod APP. I would like to ask how I can authenticate that the user has already logged in to Andriod APP in H5, not illegal access.

Mar.06,2021
The js method and local calls are used in

H5 to get local login information. For the cookie used by
, use webview to Synchronize the cookie information


in three ways:
1, when webview opens the H5 page, the login information (username, password) is written to the cookie of the page, and the page cookie is automatically brought to the backend for verification.
2. Webview opens the H5 page and passes the login information to js,js. Call the login API to log in
3. After webview opens the H5 page, the login information is passed to js,js and placed in cookie, and the page cookie is automatically brought to the backend for verification.

Menu