File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -21,14 +21,14 @@ const serviceAccount = require('path/to/serviceAccountKey.json');
21
21
const credential = admin . credential . cert ( serviceAccount ) ;
22
22
23
23
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 ;
26
26
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]
32
32
} ) ;
33
33
// [END get_service_account_tokens]
34
34
You can’t perform that action at this time.
0 commit comments