I am doing an ionic 2 app for my website which is built on MEAN stack. To access my webpages, user has to signin.
Now I want to embed upload portal link from my website to android app. But this page needs user authentication. It uses token generated during sign up. When I embed this page using iframe, it redirects to login page. But my user is already loggedIn in the app. So, I want the iframe to read the token in my local storage and directly display the uploadportal.
What should I do to acheive this? Alternative methods are also acceptable.
Note: I can code uploadportal in app but there are many pages which need this facility. So, I want to display the webpage directly for pages which are not of much use.
<img src="/uploads/default/original/3X/2/8/287364c4fb129199f0fddc1ffcecab367f125371.png" width="690" height="375">