I have an OAuth process that pops up a window, but when I log in, redirecting to the OAuth callback page happens in a popup window, not in the parent window ( window.opener ). This may be a bit hacked, but I would like a pop-up to tell my parents: "We are authorized!"
This really works:
OAuthCallback = React.createClass({ displayName: 'OAuthCallback', render() { window.opener.console.log('hello parent window'); return ( <div> Hi, OAuth is process is done. </div> ) } });
But I am wondering if there is a way that I can open the popup so that the parent window calls the prop function, for example. this.props.oauthSucceeded() .
source share