def has_credentials(self):
        return (self.credentials and not self.credentials.invalid
                and self.credentials.has_scopes(self.scopes))
Returns True if there are valid credentials for the current user
dataset/ETHPy150Open google/oauth2client/oauth2client/contrib/django_util/__init__.py/UserOAuth2.has_credentials