The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { isNonEmptyString } from '@sniptt/guards';
export const buildAuthorizationHeadersFromAccessToken = (
applicationAccessToken?: string,
): Record<string, string> | undefined =>
isNonEmptyString(applicationAccessToken)
? { Authorization: `Bearer ${applicationAccessToken}` }
: undefined;