MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / getOfflineLicenseMetadata

Function getOfflineLicenseMetadata

packages/shared/src/entitlements.ts:189–201  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

187// if it has expired. Callers that only care about active entitlements
188// should use `getEntitlements` / `getValidOfflineLicense` instead.
189export const getOfflineLicenseMetadata = (): OfflineLicenseMetadata | null => {
190 const license = getDecodedOfflineLicense();
191 if (!license) {
192 return null;
193 }
194
195 return {
196 id: license.id,
197 seats: license.seats,
198 anonymousAccess: license.anonymousAccess,
199 expiryDate: license.expiryDate,
200 };
201}
202
203export const getSeatCap = (): number | undefined => {
204 const offlineLicense = getValidOfflineLicense();

Callers 2

LayoutFunction · 0.90
page.tsxFile · 0.90

Calls 1

getDecodedOfflineLicenseFunction · 0.85

Tested by

no test coverage detected