@izzai/n8n-nodes-izzone
Version:
n8n custom node for izz.ONE
10 lines (9 loc) • 372 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getHeaders = void 0;
const getHeaders = (credentials) => ({
Accept: 'application/json',
Authorization: `Basic ${Buffer.from(`${credentials.emailId}:${credentials.apiKey}`).toString('base64')}`,
'x-environment-id': credentials.instanceId,
});
exports.getHeaders = getHeaders;