"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports._getAuthHeader = _getAuthHeader;
const get_prop_1 = require("../../objects/get-prop");
/**
 * Construct the auth header from a hub request options
 * @param {IHubRequestOptions} hubRequestOptions
 * @private
 */
function _getAuthHeader(hubRequestOptions) {
    const result = {};
    const token = (0, get_prop_1.getProp)(hubRequestOptions, "authentication.token");
    if (token) {
        result.Authorization = token;
    }
    return result;
}
//# sourceMappingURL=_get-auth-header.js.map