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

Function buildLicenseData

src/modules/gmail.js:363–372  ·  view source on GitHub ↗
(valid)

Source from the content-addressed store, hash-verified

361}
362
363function buildLicenseData(valid) {
364 const data = {
365 mvelo_license_issued: 0
366 };
367 if (valid) {
368 const date = new Date();
369 data.mvelo_license_issued = new Date(date.getUTCFullYear(), date.getUTCMonth()).getTime();
370 }
371 return data;
372}
373
374async function storeAuthData(email, data) {
375 let entries = await mvelo.storage.get(GOOGLE_OAUTH_STORE);

Callers 1

checkLicenseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected