MCPcopy Index your code
hub / github.com/mailvelope/mailvelope / validateLicense

Function validateLicense

src/modules/gmail.js:140–143  ·  view source on GitHub ↗
(storedData)

Source from the content-addressed store, hash-verified

138}
139
140function validateLicense(storedData) {
141 const date = new Date();
142 return Boolean(storedData.mvelo_license_issued) && (new Date(date.getUTCFullYear(), date.getUTCMonth()).getTime() === storedData.mvelo_license_issued);
143}
144
145export async function checkLicense({email, legacyGsuite}) {
146 const storedAuthData = await mvelo.storage.get(GOOGLE_OAUTH_STORE);

Callers 1

checkLicenseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected