I'm presenting the sign in widget in a modal poup, that i'd like to dismiss when the user clicks the sign-in button. I'm using signInFlow: 'popup', so leaving the app's modal popup open looks a bit weird. Or at least I'd like to hide the firebaseui widget and replace it with a spinner while the auth popup dialog is open.

Is there a callback, or hack, I can use to hook into the start of the auth process?