Provide popup login for facebook and google schemes.
On oauth2.js change the current behavior of window.location to redirect the user to oauth login page. Instead provide options so that it can open a popup to verify and prevent any redirect during login.
I imagine you'd have your success URLs set to try to close the new tab? I think you could easily emulate this by having your /login URL auto-forward into the standard oauth process then ensure all links to /login are target="_blank" or triggered by Javascript if you want to try to close the popup window instance after.
Is this issue solved? Any ideas how to do it? @DevBrent do you know how to add a target=_blank to it?
Looking for the same behavior.
Will be nice
need it
Do it.
I'd love to see a way to do something like this for all scheme.
This should be possible using window.open and the postMessage API.

Most helpful comment
Looking for the same behavior.