Skip to content

Commit 214d751

Browse files
authored
Use getIdToken()
Update CloudIAPServiceAccount.gs to use getIdToken()
1 parent e0fe8b4 commit 214d751

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)