Add spinner when authenticating with 3rd party. Also handle when popup window is closed without making a callback.