Skip to content

Commit 0eb26fc

Browse files
authored
fix: switching atob for btoa (#30)
1 parent 9790b73 commit 0eb26fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

couch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function makeFetch(
108108
) => {
109109
if (opts.basicAuth) {
110110
const { username, password } = opts.basicAuth;
111-
const authorization = `Basic ${atob(username + ":" + password)}`;
111+
const authorization = `Basic ${btoa(username + ":" + password)}`;
112112
headers.set("authorization", authorization);
113113
}
114114
return fetch(`${endpoint}` + path, {

0 commit comments

Comments
 (0)