macOS Sierra Internet Accounts Google login stuck

Solution 1:

Combining part of your solution and part of the solution from Can't login with Google using Internet Accounts, I got mine to work again by:

  • Opening Keychain Access > login and searching for 'google', then deleting all the 'accountsync' and 'oauth' entries. The resulted in my Google account being removed from System Preferences > Internet Accounts.
  • Completing this: https://www.google.com/accounts/UnlockCaptcha

I was then able to go to System Preferences > Internet Accounts and add my Google account back. It showed the spinny wheel on the gray screen for a second, then disappeared and I was in! Mail and Calendar show my Google data now.

I have 2-factor auth enabled.

Another solution to this would be to login to your GMail account via another program that access's macOS's shared accounts, like Calendar.app.

Solution 2:

I had the same issue, here's how I solved it:

  • removed all internet accounts (including icloud and game center).
  • double-checked I was logged out from my apple account
  • shut down computer
  • start computer
  • login to apple icloud again
  • login to google again

I tried deleting all passwords from keychain: no change.

Solution 3:

I found that if you have a default browser other than Safari you will face this issue.

  • Solution one: changing default browser to Safari
  • Alternative solution: When you see it stuck, start Safari and it will magically work.