This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// function will execute immediately | |
(function(root, factory) { | |
if (typeof exports === 'object') { | |
// commonjs | |
module.exports = factory( | |
// pass dependencies via require | |
); | |
} else if (typeof define === 'function' && define.amd) { | |
// amd | |
define([ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const jwt = require('jsonwebtoken'); | |
const { | |
SALESFORCE_CLIENT_ID, | |
SALESFORCE_AUTH_KEY, | |
SALESFORCE_USERNAME, | |
SALESFORCE_AUTH_HOST, | |
} = process.env; | |
function async getSalesforceAuthData() { |