Skip to content

Commit 65f4e51

Browse files
author
Eric Koleda
authored
Merge pull request #201 from mryerse/patch-2
Use getIdToken()
2 parents 551a4cb + 214d751 commit 65f4e51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/CloudIAPServiceAccount.gs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function run() {
2929
headers: {
3030
// As per the IAP documentation, use the id_token, not the access_token,
3131
// to authorize the request.
32-
Authorization: 'Bearer ' + service.getToken().id_token
32+
Authorization: 'Bearer ' + service.getIdToken()
3333
}
3434
});
3535
var result = response.getContentText();

0 commit comments

Comments
 (0)