I have a Flutter app that needs to show a web-view of a website (https://englishin7boxes.com). First the user can login using a username and a password. When successfully logged in the API returns an auth token. Which I have saved in memory as "authToken".
Now after login the app navigates to the home screen where I have to show the website(https://englishin7boxes.com). But I need to log into this website automatically when the webview opens. App and the website use the same login and can use the same authToken to log in.
The website login URL is "https://englishin7boxes.com/api/frame-login" . To log in we can use the authToken we got from the app login and send it in a POST request as the bearer token.
How Can I achieve this in Flutter?