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

Function getDecodedOfflineLicense

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

Source from the content-addressed store, hash-verified

78}
79
80const getDecodedOfflineLicense = (): getValidOfflineLicense | null => {
81 const licenseKey = env.SOURCEBOT_EE_LICENSE_KEY;
82 if (!licenseKey || !licenseKey.startsWith(offlineLicensePrefix)) {
83 return null;
84 }
85
86 return decodeOfflineLicenseKeyPayload(licenseKey.substring(offlineLicensePrefix.length));
87}
88
89const getValidOfflineLicense = (): getValidOfflineLicense | null => {
90 const payload = getDecodedOfflineLicense();

Callers 2

getValidOfflineLicenseFunction · 0.85

Calls 1

Tested by

no test coverage detected