Skip to content

Commit 7fb414e

Browse files
author
Eric Koleda
authored
Merge pull request #202 from mryerse/patch-3
use getIdToken()
2 parents 65f4e51 + 925e4b5 commit 7fb414e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/CloudIdentityAwareProxy.gs

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

0 commit comments

Comments
 (0)