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 d28bbf5 commit eca215dCopy full SHA for eca215d
src/client.ts
@@ -47,7 +47,7 @@ export class Client {
47
if (password === "") {
48
throw new Error("Password is required when using Basic Auth with login");
49
}
50
- this.defaultHeaders["Authorization"] = `Basic ${Buffer.from(`${login}:${password}`).toString("base64")}`;
+ this.defaultHeaders["Authorization"] = `Basic ${btoa(`${login}:${password}`)}`;
51
52
53
0 commit comments