How to Solve NameError: name 'auth' is not defined -- google

Solution: Import the 'auth' module

To Solve the error, add the following line to the top of your code.

from google.colab import auth

 

For more information:
Python google auth