mirror of
https://github.com/gnmyt/LicenseAPI.git
synced 2026-01-09 17:51:47 +00:00
Update validation.ts
This commit is contained in:
@ -53,7 +53,7 @@ export const signOfflineKey = async (validationKey: string, licenseKey: string)
|
||||
const signer = createSign("RSA-SHA256");
|
||||
|
||||
const renewalDate = new Date();
|
||||
renewalDate.setDate(renewalDate.getDate() + 7); // TODO: Let the user choose the renewal date
|
||||
renewalDate.setDate(renewalDate.getDate() + (project.offlineRenewalDays || 7));
|
||||
|
||||
signer.update(JSON.stringify({...license.license, renewalDate}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user