@forge/cli-shared
8.24.0-experimental-04cc2b98.24.1-next.0
out/auth/authenticator.js~
out/auth/authenticator.jsModified+3−2
Index: package/out/auth/authenticator.js
===================================================================
--- package/out/auth/authenticator.js
+++ package/out/auth/authenticator.js
@@ -1,11 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
-exports.getBasicAuthorizationHeader = getBasicAuthorizationHeader;
-exports.getBearerAuthorizationHeader = getBearerAuthorizationHeader;
+exports.getBearerAuthorizationHeader = exports.getBasicAuthorizationHeader = void 0;
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;