@frontegg/rest-api 3.0.8 → 3.0.9

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/auth/index.js CHANGED
@@ -52,7 +52,7 @@ export async function generateLoginResponseFromOAuthResponse(oauthResponse) {
52
52
  accessToken: oauthResponse.id_token,
53
53
  refreshToken: oauthResponse.refresh_token
54
54
  }, decodedContent, me, {
55
- expiresIn: decodedContent.exp ? (new Date().getTime() - decodedContent.exp) / 1000 : 300
55
+ expiresIn: decodedContent.exp ? decodedContent.exp - new Date().getTime() / 1000 : 300
56
56
  });
57
57
 
58
58
  ContextHolder.setUser(user);
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.8
1
+ /** @license Frontegg v3.0.9
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -274,7 +274,7 @@ async function generateLoginResponseFromOAuthResponse(oauthResponse) {
274
274
  accessToken: oauthResponse.id_token,
275
275
  refreshToken: oauthResponse.refresh_token
276
276
  }, decodedContent, me, {
277
- expiresIn: decodedContent.exp ? (new Date().getTime() - decodedContent.exp) / 1000 : 300
277
+ expiresIn: decodedContent.exp ? decodedContent.exp - new Date().getTime() / 1000 : 300
278
278
  });
279
279
 
280
280
  _ContextHolder.ContextHolder.setUser(user);
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.8
1
+ /** @license Frontegg v3.0.9
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/rest-api",
3
- "version": "3.0.8",
3
+ "version": "3.0.9",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {