Skip to content

Commit

Permalink
fix: compilation error in fallback.ts (#1444)
Browse files Browse the repository at this point in the history
The compilation failed for me on a clean install, possibly because of some auth library update. We don't really care about the real type of the returned auth client, so a simple type cast should be good.
  • Loading branch information
alexander-fenster authored May 2, 2023
1 parent 6d17ba2 commit 8e6888f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fallback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export class GrpcClient {
) {
if (!this.authClient) {
if (this.auth && 'getClient' in this.auth) {
this.authClient = await this.auth.getClient();
this.authClient = (await this.auth.getClient()) as AuthClient;
} else if (this.auth && 'getRequestHeaders' in this.auth) {
this.authClient = this.auth;
}
Expand Down

0 comments on commit 8e6888f

Please sign in to comment.