There was an error while loading. Please reload this page.
1 parent 5950e2b commit e28272aCopy full SHA for e28272a
google/cloud/firestore_v1/base_client.py
@@ -180,7 +180,10 @@ def _emulator_channel(self, transport):
180
# https://github.com/googleapis/python-firestore/issues/359
181
# Default the token to a non-empty string, in this case "owner".
182
token = "owner"
183
- if self._credentials is not None and self._credentials.id_token is not None:
+ if (
184
+ self._credentials is not None
185
+ and getattr(self._credentials, "id_token", None) is not None
186
+ ):
187
token = self._credentials.id_token
188
options = [("Authorization", f"Bearer {token}")]
189
0 commit comments