@crowdin/app-project-module 0.17.0 → 0.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/util/connection.js +1 -1
- package/package.json +1 -1
package/out/util/connection.js
CHANGED
|
@@ -82,7 +82,7 @@ function prepareIntegrationCredentials(config, integration, integrationCredentia
|
|
|
82
82
|
const oauthLogin = integration.oauthLogin;
|
|
83
83
|
const { expireIn } = credentials;
|
|
84
84
|
//2 min as an extra buffer
|
|
85
|
-
const isExpired = expireIn
|
|
85
|
+
const isExpired = expireIn - 120 < Date.now() / 1000;
|
|
86
86
|
if (isExpired) {
|
|
87
87
|
(0, _1.log)('Integration credentials have expired. Requesting a new credentials', config.logger);
|
|
88
88
|
let newCredentials;
|
package/package.json
CHANGED