Back

Version 3

10/23/2023
import { Buffer } from "node:buffer";

export let basicAuthorization = (username: string, password: string) => ({
Authorization: "Basic " + Buffer.from(username + ":" + password).toString("base64"),
});
Updated: October 23, 2023