I am trying to login to my mac with a personal gmail Google account (not GSuite) that has 2-Factor enabled, so I can sync mail, contacts, and notes.
Previously, I was able to do this. However, recently Mac kept popping up a notification to re-login to the account.
When logging into the account, I can enter in my user name and password, then I am prompted for a 2-Factor verification. After approving the two factor (I have tried with the Gmail iOS pop up, Google Authenticator, and a text message), I get to the following screen (below):
When I switch my browser to default as Safari (per the suggestion in this question), I get to this next screen (below) and then get the same 400 error screen above.
Other things I've tried:
Tried logging out of Mac, updating to the latest version, removing icloud, and trying to add Google accounts see this Q&A - same outcome.
I've tried using an application-specific password such as mentioned here. The application-specific password won't work when trying to login to the Google pop up.
When I use the application-specific login (e.g. one email account for mail and notes and add one CalDev account using google.com as the server and an application specific password) to add the account, mail and notes appear to sync,but contacts don't appear to sync.