@licenso/core
v1.2.0
Published
Shared types for Licenso.
Downloads
5,602
Readme
@licenso/core
Shared types for Licenso.
Types
export type UsageLimits = Record<string, number | undefined>;
export type Modules = Record<string, boolean>;
export type LicenseConfig = {
deviceIdentifier: string;
usageLimits?: UsageLimits;
modules: Modules;
};
export type LicensePayload = {
cfg: LicenseConfig;
iat: number; // issued at (unix seconds)
exp: number; // expiry (unix seconds)
};
export type LicenseHeader = {
v: 1;
alg: 'Ed25519';
};Development
pnpm nx build @licenso/core
pnpm nx test @licenso/core