Skip to content

Commit

Permalink
fix scope check for app access tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
d-fischer committed May 30, 2023
1 parent 7e8141d commit 82d56c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/auth/src/providers/RefreshingAuthProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ export class RefreshingAuthProvider extends EventEmitter implements AuthProvider
if (forceNew) {
this._appAccessToken = undefined;
}
return await this._appTokenFetcher.fetch(this._appImpliedScopes);
return await this._appTokenFetcher.fetch(...this._appImpliedScopes.map(scopes => [scopes]));
}

private _checkIntermediateUserRemoval(userId: string) {
Expand Down

0 comments on commit 82d56c3

Please sign in to comment.