Skip to content

Commit 14440f5

Browse files
save file
1 parent 205775c commit 14440f5

File tree

1 file changed

+2
-3
lines changed
  • utils/gcloud/generate-token-from-service-account-keyfile

1 file changed

+2
-3
lines changed

utils/gcloud/generate-token-from-service-account-keyfile/generate.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@
1212

1313
var assertion = await buildJwtAssertion({clientEmail,privateKeyPem,scope});
1414
var {json,error} = await exchangeForAccessToken(assertion);
15+
1516
if(error){
1617
return {error};
1718
}
18-
19-
var token = json.access_token;
20-
return {json,token};
19+
return {json};
2120

2221

2322
async function buildJwtAssertion({clientEmail,privateKeyPem,scope,aud}){

0 commit comments

Comments
 (0)