diff --git a/flask_cloud_ndb/__init__.py b/flask_cloud_ndb/__init__.py index fb98260..8235670 100644 --- a/flask_cloud_ndb/__init__.py +++ b/flask_cloud_ndb/__init__.py @@ -7,7 +7,7 @@ import os -from google.auth._default import _load_credentials_from_file +from google.auth import load_credentials_from_file from google.cloud import ndb @@ -63,7 +63,7 @@ def init_app(self, app): credentials_file = app.config["NDB_GOOGLE_APPLICATION_CREDENTIALS"] if credentials_file: # call google auth helper to initialise credentials - credentials, project_id = _load_credentials_from_file( + credentials, project_id = load_credentials_from_file( credentials_file) else: # default credentials, OR load from env, through underlying