macOS Sierra Internet Accounts Google login stuck I am trying to add a Google account using System Preferences > Internet Accounts.

I already tried the following.


able to reproduce this in 10.12.3 and 10.12.2. 
disabled OTP, same issue
able to reproduce in Macbook Air and Macbook Pro
same issue with both Gmail account (tried two) and Google Apps account
I am not using any iCloud
it appears to be similar to this issue but the fix does not work: Can&#39;t login with Google using Internet Accounts
adding LinkedIn works
I already tried to VPN to California and Singapore to check if something is wrong with Google mirrors
creating a new user account and adding the Google account from there, same issue
as advised by Apple Support tried https://www.google.com/accounts/UnlockCaptcha


It gets stuck right after a successful login. I took a screenshot.



Anybody experiencing the same issue?
Combining part of your solution and part of the solution from Can&#39;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.