@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.
@@ -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 + 120 < Date.now() / 1000;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crowdin/app-project-module",
3
- "version": "0.17.0",
3
+ "version": "0.17.1",
4
4
  "description": "Module that generates for you all common endpoints for serving standalone Crowdin App",
5
5
  "main": "out/index.js",
6
6
  "types": "out/index.d.ts",