@ruiapp/rapid-core 0.1.11 → 0.1.12

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/dist/index.js CHANGED
@@ -3770,7 +3770,7 @@ async function handler$5(plugin, ctx, options) {
3770
3770
  iss: "authManager",
3771
3771
  sub: "userAccessToken",
3772
3772
  aud: "" + user.id,
3773
- iat: new Date,
3773
+ iat: Math.floor(Date.now() / 1000),
3774
3774
  act: user.login,
3775
3775
  }, secretKey);
3776
3776
  setCookie(response.headers, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ruiapp/rapid-core",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "keywords": [],
@@ -42,7 +42,7 @@ export async function handler(
42
42
  iss: "authManager",
43
43
  sub: "userAccessToken",
44
44
  aud: "" + user.id,
45
- iat: new Date,
45
+ iat: Math.floor(Date.now() / 1000),
46
46
  act: user.login,
47
47
  } as UserAccessToken, secretKey);
48
48