Skip to content

getAuthType

This method returns either oauth or apiKey.

Request parameters

None.

Return value(s)

This interface returns a single string, either oauth or apiKey to indicate what kind of auth is supported by the target CRM.

Reference

function getBasicAuth({ apiKey }) {
    return Buffer.from(`${apiKey}:`).toString('base64');
}
    return 'oauth';
}