Skip to content

Commit 6a7a880

Browse files
Updated indentation
1 parent 87a191b commit 6a7a880

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

auth/get_service_account_tokens.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ const serviceAccount = require('path/to/serviceAccountKey.json');
2121
const credential = admin.credential.cert(serviceAccount);
2222

2323
credential.getAccessToken().then((accessTokenInfo) => {
24-
const accessToken = accessTokenInfo.access_token;
25-
const expirationTime = accessTokenInfo.expires_in;
24+
const accessToken = accessTokenInfo.access_token;
25+
const expirationTime = accessTokenInfo.expires_in;
2626

27-
// Attach accessToken to HTTPS request in the "Authorization: Bearer" header
28-
// After expirationTime, you must generate a new access token
29-
// [START_EXCLUDE]
30-
console.log(`The token ${accessToken} expires in ${expirationTime}`);
31-
// [END_EXCLUDE]
27+
// Attach accessToken to HTTPS request in the "Authorization: Bearer" header
28+
// After expirationTime, you must generate a new access token
29+
// [START_EXCLUDE]
30+
console.log(`The token ${accessToken} expires in ${expirationTime}`);
31+
// [END_EXCLUDE]
3232
});
3333
// [END get_service_account_tokens]
3434

0 commit comments

Comments
 (0)