Skip to content

Commit 380ef0a

Browse files
fix: Fix the property names when initializing the SDK with ServiceAccount type (#2779)
1 parent a6a930c commit 380ef0a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/app/credential-internal.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,10 @@ function populateGoogleAuth(keyFile: string | object, httpAgent?: Agent)
473473
'Service account must be an object.',
474474
);
475475
}
476+
copyAttr(keyFile, keyFile, 'project_id', 'projectId');
477+
copyAttr(keyFile, keyFile, 'private_key', 'privateKey');
478+
copyAttr(keyFile, keyFile, 'client_email', 'clientEmail');
479+
476480
client = auth.fromJSON(keyFile);
477481
}
478482
return { auth, client };

0 commit comments

Comments
 (0)