@frontegg/rest-api 3.0.7 → 3.0.8

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
@@ -51,7 +51,9 @@ export async function generateLoginResponseFromOAuthResponse(oauthResponse) {
51
51
  mfaRequired: false,
52
52
  accessToken: oauthResponse.id_token,
53
53
  refreshToken: oauthResponse.refresh_token
54
- }, decodedContent, me);
54
+ }, decodedContent, me, {
55
+ expiresIn: decodedContent.exp ? (new Date().getTime() - decodedContent.exp) / 1000 : 300
56
+ });
55
57
 
56
58
  ContextHolder.setUser(user);
57
59
  return user;
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.7
1
+ /** @license Frontegg v3.0.8
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.
@@ -273,7 +273,9 @@ async function generateLoginResponseFromOAuthResponse(oauthResponse) {
273
273
  mfaRequired: false,
274
274
  accessToken: oauthResponse.id_token,
275
275
  refreshToken: oauthResponse.refresh_token
276
- }, decodedContent, me);
276
+ }, decodedContent, me, {
277
+ expiresIn: decodedContent.exp ? (new Date().getTime() - decodedContent.exp) / 1000 : 300
278
+ });
277
279
 
278
280
  _ContextHolder.ContextHolder.setUser(user);
279
281
 
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.7
1
+ /** @license Frontegg v3.0.8
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.7",
3
+ "version": "3.0.8",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {