Skip to content

Commit ec43108

Browse files
committed
refactor: simplify buildAuthHeader
1 parent f2680df commit ec43108

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/tools/testmanagement-utils/update-testrun.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ type UpdateTestRunArgs = z.infer<typeof UpdateTestRunSchema>;
5858
* Builds the HTTP Basic auth header from per-request config credentials.
5959
*/
6060
function buildAuthHeader(config: BrowserStackConfig): string {
61-
const [username, password] = getBrowserStackAuth(config).split(":");
62-
return "Basic " + Buffer.from(`${username}:${password}`).toString("base64");
61+
return "Basic " + Buffer.from(getBrowserStackAuth(config)).toString("base64");
6362
}
6463

6564
/**

0 commit comments

Comments
 (0)