Skip to content

Commit f74245f

Browse files
authored
fix: skip rewriting auth header (#32)
1 parent 8807701 commit f74245f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api_client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class APIClient {
6262
...envHeaders,
6363
},
6464
}
65-
if (auth) opts.headers.authorization = `Bearer ${auth}`
65+
if (auth && !opts.headers.authorization) opts.headers.authorization = `Bearer ${auth}`
6666
this.http = class APIHTTPClient extends deps.HTTP.HTTP.create(opts) {
6767
static async twoFactorRetry(
6868
err: HTTPError,

0 commit comments

Comments
 (0)