fix: hardcode LICENSE_SECRET default so no .env setup needed on new installs

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-22 00:13:02 -04:00
parent 921ecbe10a
commit 029a0e9d53

View File

@@ -6,7 +6,7 @@ import path from "path";
const router = Router();
const LICENSE_FILE = path.join(process.cwd(), "license.json");
const SECRET = process.env.LICENSE_SECRET || "";
const SECRET = process.env.LICENSE_SECRET || "3aa4ab937e46c6863b9e3c2b591a595b31ea3af1060bf5e7961ad722a8b54f92";
function validateKey(key: string): { valid: boolean; expiry?: string; error?: string } {
// Format: DENTAL-{24-char-signature}-{YYYY-MM-DD}