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 8807701 commit f74245fCopy full SHA for f74245f
src/api_client.ts
@@ -62,7 +62,7 @@ export class APIClient {
62
...envHeaders,
63
},
64
}
65
- if (auth) opts.headers.authorization = `Bearer ${auth}`
+ if (auth && !opts.headers.authorization) opts.headers.authorization = `Bearer ${auth}`
66
this.http = class APIHTTPClient extends deps.HTTP.HTTP.create(opts) {
67
static async twoFactorRetry(
68
err: HTTPError,
0 commit comments