Calculate expiry date should not be async.

This commit is contained in:
Daniel Scalzi 2022-02-15 09:09:26 -05:00
parent fc289262a8
commit b092722488
No known key found for this signature in database
GPG Key ID: D18EA3FB4B142A57

View File

@ -124,7 +124,7 @@ async function fullMicrosoftAuthFlow(entryCode, authMode) {
* @param {number} epiresInS Expires in (seconds) * @param {number} epiresInS Expires in (seconds)
* @returns * @returns
*/ */
async function calculateExpiryDate(nowMs, epiresInS) { function calculateExpiryDate(nowMs, epiresInS) {
return nowMs + ((epiresInS-10)*1000) return nowMs + ((epiresInS-10)*1000)
} }