We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab5e298 commit 6391e1cCopy full SHA for 6391e1c
packages/google-cloud-firestore/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