When the page does not close after OAuth
Q. After the OAuth process, why the OAuth browser / popup remains open?​
A. This occurs when the OAuth URL is accessed directly via REST API tools like Postman or by copying and pasting the link directly into the browser.
Due to security issues, JavaScript’s window.close()
method does not close the window.
However, if the OAuth URL is accessed through a page generated by the browser, window.close()
takes effect and closes the browser window.
For more information, please refer to the documentation: MDN Web Docs: Window.close()
Helpful?