Unlicensed should return false, not error
This commit is contained in:
@@ -20,6 +20,7 @@ const schemaLicenseKey = z
|
||||
|
||||
async function checkLicense(license: string): Promise<boolean> {
|
||||
if (!!process.env.NEXT_PUBLIC_IS_E2E) return true;
|
||||
if (!license) return false;
|
||||
const url = `${CONSOLE_URL}/api/license?key=${schemaLicenseKey.parse(license)}`;
|
||||
const cachedResponse = cache.get(url);
|
||||
if (cachedResponse) {
|
||||
|
||||
Reference in New Issue
Block a user