To be honest, I didn’t use OAuth2 for authentication instead I use Google service account. Do you really need to use OAuth2?