We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9c78e2 commit 89beac0Copy full SHA for 89beac0
firebase_admin/credentials.py
@@ -88,7 +88,6 @@ def __init__(self, cert):
88
if json_data.get('type') != self._CREDENTIAL_TYPE:
89
raise ValueError('Invalid service account certificate. Certificate must contain a '
90
'"type" field set to "{0}".'.format(self._CREDENTIAL_TYPE))
91
- self._project_id = json_data.get('project_id')
92
try:
93
self._g_credential = service_account.Credentials.from_service_account_info(
94
json_data, scopes=_scopes)
@@ -98,7 +97,7 @@ def __init__(self, cert):
98
97
99
@property
100
def project_id(self):
101
- return self._project_id
+ return self._g_credential.project_id
102
103
104
def signer(self):
0 commit comments