We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dec9efe commit 054ca03Copy full SHA for 054ca03
packages/sdk/src/server/async.ts
@@ -31,6 +31,9 @@ export class ServerAsyncResponseManager extends AsyncResponseManager {
31
32
protected override async getOpts(): Promise<AsyncResponseManagerOpts> {
33
const oauthToken = await this.serverOpts.getOauthToken();
34
+ if (!oauthToken?.token?.access_token) {
35
+ throw new Error('Invalid OAuth token structure');
36
+ }
37
const token = oauthToken.token.access_token;
38
const projectId = await this.serverOpts.getProjectId();
39
return {
0 commit comments