@frontegg/rest-api 3.0.100 → 3.0.101

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 ? Math.ceil(decodedContent.exp - new Date().getTime() / 1000) : 300
55
+ expiresIn: oauthResponse.expires_in || 300
56
56
  });
57
57
 
58
58
  ContextHolder.setUser(user);
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.100
1
+ /** @license Frontegg v3.0.101
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.
@@ -346,7 +346,7 @@ async function generateLoginResponseFromOAuthResponse(oauthResponse) {
346
346
  accessToken: oauthResponse.id_token,
347
347
  refreshToken: oauthResponse.refresh_token
348
348
  }, decodedContent, me, {
349
- expiresIn: decodedContent.exp ? Math.ceil(decodedContent.exp - new Date().getTime() / 1000) : 300
349
+ expiresIn: oauthResponse.expires_in || 300
350
350
  });
351
351
 
352
352
  _ContextHolder.ContextHolder.setUser(user);
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.100
1
+ /** @license Frontegg v3.0.101
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.100",
3
+ "version": "3.0.101",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {