The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { type EnterpriseKeyPayload } from './organization-key-payload';
import { signJwt } from './sign-jwt';
export function signEnterpriseKey(
subscriptionId: string,
licensee: string,
): string {
const payload: EnterpriseKeyPayload = {
iat: Math.floor(Date.now() / 1000),
licensee,
sub: subscriptionId,
};
return signJwt(payload);
}