I'm having pop up authentication (instagram & twitter), the flow is:
- in page
/homeuser click button instagram auth - onClick -->
window.open(INSTAGRAM_AUTH_URL, '_blank', null) - pop up window will authenticate instagram then redirect to page
/social-auth in
/social-authI did:if (window.opener) { window.opener.postMessage(data) window.close() }- in page
/homeI have listenerwindow.addEventListener('message', .....)to receive thepostMessagedata from/social-auth
The problem is, on step 4 the window.opener = null on mobile browser (I tried on chrome apps).
Is there anything that I'm missing? FYI it's working fine on desktop browser and I'm using React.js for the framework