Skip to content

Commit 0b2a265

Browse files
authored
fix(auth): pass project id to gax clients (#447)
1 parent 00cb783 commit 0b2a265

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

handwritten/pubsub/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,8 @@ export class PubSub {
806806
return;
807807
}
808808
this.projectId = projectId!;
809+
this.options.projectId = projectId!;
810+
809811
this.getClient_(config, callback);
810812
});
811813
return;

handwritten/pubsub/test/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,6 +1084,7 @@ describe('PubSub', () => {
10841084
pubsub.getClient_(CONFIG, err => {
10851085
assert.ifError(err);
10861086
assert.strictEqual(pubsub.projectId, PROJECT_ID);
1087+
assert.strictEqual(pubsub.options.projectId, PROJECT_ID);
10871088
done();
10881089
});
10891090
});

0 commit comments

Comments
 (0)