title: Closing OAuth 2.0 popup window after redirect
body: <p>I redirect user to the OAuth 2.0 authorization endpoint in popup window.
  What is best way to close this popup and refresh main window after OAuth 2.0 authorization server redirects user back with an authorization code?</p>
  
  <p>Thanks in advance for any help.</p>