@forge/cli-shared
8.24.08.24.0-experimental-04cc2b9
out/auth/authenticator.js~
out/auth/authenticator.jsModified+2−3
Index: package/out/auth/authenticator.js
===================================================================
--- package/out/auth/authenticator.js
+++ package/out/auth/authenticator.js
@@ -1,12 +1,11 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
-exports.getBearerAuthorizationHeader = exports.getBasicAuthorizationHeader = void 0;
+exports.getBasicAuthorizationHeader = getBasicAuthorizationHeader;
+exports.getBearerAuthorizationHeader = getBearerAuthorizationHeader;
function getBasicAuthorizationHeader(username, password) {
const base64 = Buffer.from(`${username}:${password}`).toString('base64');
return { authorization: `Basic ${base64}` };
}
-exports.getBasicAuthorizationHeader = getBasicAuthorizationHeader;
function getBearerAuthorizationHeader(token) {
return { authorization: `Bearer ${token}` };
}
-exports.getBearerAuthorizationHeader = getBearerAuthorizationHeader;