The username for authentication.
The password for authentication.
The Basic authentication header.
// Generating a Basic authentication header
const username = 'yourUsername';
const password = 'yourPassword';
const basicAuthHeader = getBasicAuthHeader(username, password);
console.log(basicAuthHeader);
// Output will be: { Authorization: 'Basic base64EncodedString' }
Generated using TypeDoc
Generates a Basic authentication header using the provided username and password.