Skip to content

Commit 109020e

Browse files
committed
Add credentials scope in oauth2_auth_token interop test
1 parent 157de1a commit 109020e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/interop/interop_client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ function getApplicationCreds(scope, callback) {
484484
}
485485

486486
function getOauth2Creds(scope, callback) {
487-
(new GoogleAuth()).getAccessToken().then((token) => {
487+
(new GoogleAuth({scopes: scope})).getAccessToken().then((token) => {
488488
var updateMd = function(service_url, callback) {
489489
var metadata = new grpc.Metadata();
490490
metadata.add('authorization', 'Bearer ' + token);

0 commit comments

Comments
 (0)