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?
Thanks in advance for any help.
I think popup you can close by
And to refresh main window I used this trick:
Opener ( main window ) just checks every time if the popup still live and if win.closed returns true – the main window reloads
Hope it will help somebody