@schemavaults/auth-common 0.8.7 → 0.8.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.
|
@@ -4,8 +4,9 @@ const oneHour = oneMinute * 60;
|
|
|
4
4
|
const oneDay = oneHour * 24;
|
|
5
5
|
const oneWeek = oneDay * 7;
|
|
6
6
|
// How long refresh tokens are valid for (in seconds)
|
|
7
|
-
export const refreshTokenExpiry = oneWeek;
|
|
8
|
-
|
|
7
|
+
export const refreshTokenExpiry = oneWeek * 2;
|
|
8
|
+
// How long access tokens are valid for (in seconds)
|
|
9
|
+
export const accessTokenExpiry = oneHour * 1.5;
|
|
9
10
|
/**
|
|
10
11
|
* @param type Access or refresh token -- determines the expiry time
|
|
11
12
|
* @returns How many seconds after the token was issued that the token is valid for
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token-expiry.js","sourceRoot":"","sources":["../../src/token-data/token-expiry.ts"],"names":[],"mappings":"AAEA,+BAA+B;AAC/B,MAAM,SAAS,GAAW,EAAW,CAAC;AACtC,MAAM,OAAO,GAAW,SAAS,GAAG,EAAE,CAAC;AACvC,MAAM,MAAM,GAAW,OAAO,GAAG,EAAE,CAAC;AACpC,MAAM,OAAO,GAAW,MAAM,GAAG,CAAC,CAAC;AAEnC,qDAAqD;AACrD,MAAM,CAAC,MAAM,kBAAkB,GAAW,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"token-expiry.js","sourceRoot":"","sources":["../../src/token-data/token-expiry.ts"],"names":[],"mappings":"AAEA,+BAA+B;AAC/B,MAAM,SAAS,GAAW,EAAW,CAAC;AACtC,MAAM,OAAO,GAAW,SAAS,GAAG,EAAE,CAAC;AACvC,MAAM,MAAM,GAAW,OAAO,GAAG,EAAE,CAAC;AACpC,MAAM,OAAO,GAAW,MAAM,GAAG,CAAC,CAAC;AAEnC,qDAAqD;AACrD,MAAM,CAAC,MAAM,kBAAkB,GAAW,OAAO,GAAG,CAAC,CAAC;AAEtD,oDAAoD;AACpD,MAAM,CAAC,MAAM,iBAAiB,GAAW,OAAO,GAAG,GAAG,CAAC;AAEvD;;;GAGG;AACH,SAAS,gBAAgB,CAAC,IAAoB;IAC5C,IAAI,kBAA0B,CAAC;IAC/B,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,SAAS;YACZ,kBAAkB,GAAG,kBAAkB,CAAC;YACxC,MAAM;QACR,KAAK,QAAQ;YACX,kBAAkB,GAAG,iBAAiB,CAAC;YACvC,MAAM;QACR;YACE,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAC;IAC1C,CAAC;IACD,OAAO,kBAAkB,CAAC;AAC5B,CAAC;AAED,qHAAqH;AAErH;;;;;GAKG;AACH,MAAM,UAAU,aAAa,CAAC,IAAoB,EAAE,GAAW;IAC7D,4DAA4D;IAC5D,MAAM,kBAAkB,GAAW,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAC1D,+BAA+B;IAC/B,OAAO,GAAG,GAAG,kBAAkB,GAAG,IAAI,CAAC;AACzC,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,uBAAuB,CAAC,IAAoB;IAC1D,OAAO,GAAG,gBAAgB,CAAC,IAAI,CAAC,GAAG,CAAC;AACtC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schemavaults/auth-common",
|
|
3
3
|
"description": "Types and utility functions for authentication and authorization",
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.9",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"private": false,
|
|
7
7
|
"repository": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"types": "dist/index.d.ts",
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"zod": "3.23.8",
|
|
17
|
-
"@schemavaults/app-definitions": "0.6.
|
|
17
|
+
"@schemavaults/app-definitions": "0.6.17",
|
|
18
18
|
"crypto-js": "4.2.0"
|
|
19
19
|
},
|
|
20
20
|
"scripts": {
|