Skip to content
This repository was archived by the owner on Dec 14, 2020. It is now read-only.

Commit b6c669b

Browse files
committed
fix: Fixes basic auth creation.
1 parent 92e9b3b commit b6c669b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/statementUtils/createBasicAuthToken.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ export interface BasicAuthOpts {
1010
* Returns `Basic <BASE 64 ENCODED KEY:SECRET>`
1111
*/
1212
export default function createBasicAuthToken(opts: BasicAuthOpts) {
13-
const encodedCredentials = encode(`${opts.key}:${opts.secret})`);
13+
const encodedCredentials = encode(`${opts.key}:${opts.secret}`);
1414
return `Basic ${encodedCredentials}`;
1515
}

0 commit comments

Comments
 (0)