(storedData)
| 138 | } |
| 139 | |
| 140 | function 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 | |
| 145 | export async function checkLicense({email, legacyGsuite}) { |
| 146 | const storedAuthData = await mvelo.storage.get(GOOGLE_OAUTH_STORE); |