One approach I'm exploring is having users authenticate with Facebook in a separate window to eliminate the need for refreshing the web app.
The current setup involves redirecting the user to a route that contains an HTML file which includes a script to close the window.
However, the issue arises when the HTML file with the window.close() script only executes after all Angular modules have finished downloading in the window.
Is there a way to immediately close the window without waiting for all these modules to load?