UNPKG

@taurgis/sfccdx

Version:

SFCCDX is a command line interface (CLI) for Salesforce Commerce Cloud. It can be used to easily manage (meta)data (import/export) in relation to your project.

12 lines (10 loc) 510 B
const addGenericHeader = require('./addGenericHeader'); /** * @function addBearerToken * @description Adds the authorization header to the request * * @param {Object} thisRequest Represents the current request being processed * @param {String} bearerToken Represents the bearer token to be added to the request * @returns {Object} Returns the request with the bearer token added */ module.exports = (thisRequest, bearerToken) => addGenericHeader(thisRequest, 'Authorization', `Bearer ${bearerToken}`);