How to automation 2FA or login through Google scenarion


I am working on my company project in that login on the project is through google login and since my company email is 2-factor authentication enabled I am facing issue in automation.

So scenario is :

  1. I goto my company project website
  2. I click login through Google, new window opens in which I entered my credentials
  3. Now due to 2FA enabled, OTP comes on my mobile and my script stucks here only.

Can anyone help me in this

Hello, I have the same question!!

Looks like 2019 there is no solution?