Presumably you have the auth flow in the new tab finish on a simple page containing a script. What does that script do to notify the original window that the auth flow is finished?
In the front end I just poll every few seconds for the oauth completion and the server says "yup I'm done" or "they're still working on it" :)