@schemavaults/auth-common 0.10.5 → 0.10.6
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/auth-error-message-catalog.d.ts +1 -1
- package/dist/auth-error-message-catalog.js +2 -0
- package/dist/auth-error-message-catalog.js.map +1 -1
- package/dist/pkce/index.d.ts +1 -0
- package/dist/pkce/index.js +1 -0
- package/dist/pkce/index.js.map +1 -1
- package/dist/pkce/is_pkce_challenge_expired.d.ts +1 -0
- package/dist/pkce/is_pkce_challenge_expired.js +5 -0
- package/dist/pkce/is_pkce_challenge_expired.js.map +1 -0
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const ERROR_IDS: readonly ["unknown", "bad_request", "app_id_not_found", "api_server_id_not_found", "unauthenticated", "forbidden", "account_disabled", "load_user_data_failure", "internal_server_error", "load_server_config_failure", "server_misconfiguration", "account_not_in_organization"];
|
|
1
|
+
declare const ERROR_IDS: readonly ["unknown", "bad_request", "app_id_not_found", "api_server_id_not_found", "unauthenticated", "forbidden", "account_disabled", "load_user_data_failure", "internal_server_error", "load_server_config_failure", "server_misconfiguration", "account_not_in_organization", "pkce_challenge_expired"];
|
|
2
2
|
export type SchemaVaultsAuthErrorId = (typeof ERROR_IDS)[number];
|
|
3
3
|
export declare const ERROR_MESSAGE_CATALOG: Record<SchemaVaultsAuthErrorId, string>;
|
|
4
4
|
export declare function isValidErrorId(id: string): id is SchemaVaultsAuthErrorId;
|
|
@@ -11,6 +11,7 @@ const ERROR_IDS = [
|
|
|
11
11
|
"load_server_config_failure",
|
|
12
12
|
"server_misconfiguration",
|
|
13
13
|
"account_not_in_organization",
|
|
14
|
+
"pkce_challenge_expired",
|
|
14
15
|
];
|
|
15
16
|
export const ERROR_MESSAGE_CATALOG = {
|
|
16
17
|
unknown: "An unknown error occurred",
|
|
@@ -25,6 +26,7 @@ export const ERROR_MESSAGE_CATALOG = {
|
|
|
25
26
|
load_server_config_failure: "There was a problem loading server configuration settings.",
|
|
26
27
|
server_misconfiguration: "The server does not appear to be configured properly. If you are the site admin, please see the logs for more details.",
|
|
27
28
|
account_not_in_organization: "Your account is not a member of the organization required for the attempted action.",
|
|
29
|
+
pkce_challenge_expired: "Your authorization session has expired. Please return to the requesting application and try again.",
|
|
28
30
|
};
|
|
29
31
|
export function isValidErrorId(id) {
|
|
30
32
|
return ERROR_IDS.includes(id);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-error-message-catalog.js","sourceRoot":"","sources":["../src/auth-error-message-catalog.ts"],"names":[],"mappings":"AAAA,MAAM,SAAS,GAAG;IAChB,SAAS;IACT,aAAa;IACb,kBAAkB;IAClB,yBAAyB;IACzB,iBAAiB;IACjB,WAAW;IACX,kBAAkB;IAClB,wBAAwB;IACxB,uBAAuB;IACvB,4BAA4B;IAC5B,yBAAyB;IACzB,6BAA6B;
|
|
1
|
+
{"version":3,"file":"auth-error-message-catalog.js","sourceRoot":"","sources":["../src/auth-error-message-catalog.ts"],"names":[],"mappings":"AAAA,MAAM,SAAS,GAAG;IAChB,SAAS;IACT,aAAa;IACb,kBAAkB;IAClB,yBAAyB;IACzB,iBAAiB;IACjB,WAAW;IACX,kBAAkB;IAClB,wBAAwB;IACxB,uBAAuB;IACvB,4BAA4B;IAC5B,yBAAyB;IACzB,6BAA6B;IAC7B,wBAAwB;CACY,CAAC;AAIvC,MAAM,CAAC,MAAM,qBAAqB,GAA4C;IAC5E,OAAO,EAAE,2BAA2B;IACpC,WAAW,EAAE,wCAAwC;IACrD,gBAAgB,EAAE,kCAAkC;IACpD,uBAAuB,EAAE,wCAAwC;IACjE,eAAe,EACb,iGAAiG;IACnG,SAAS,EACP,gHAAgH;IAClH,gBAAgB,EAAE,iCAAiC;IACnD,sBAAsB,EACpB,4EAA4E;IAC9E,qBAAqB,EACnB,qFAAqF;IACvF,0BAA0B,EACxB,4DAA4D;IAC9D,uBAAuB,EACrB,wHAAwH;IAC1H,2BAA2B,EACzB,qFAAqF;IACvF,sBAAsB,EACpB,oGAAoG;CACvG,CAAC;AAEF,MAAM,UAAU,cAAc,CAAC,EAAU;IACvC,OAAO,SAAS,CAAC,QAAQ,CAAC,EAA8C,CAAC,CAAC;AAC5E,CAAC"}
|
package/dist/pkce/index.d.ts
CHANGED
|
@@ -3,3 +3,4 @@ export type * from './pkce';
|
|
|
3
3
|
export type { CodeChallenge, CodeChallengeWithDetails } from './code_challenge';
|
|
4
4
|
export type { CodeVerifier, CodeVerifierWithDetails } from './code_verifier';
|
|
5
5
|
export { MAX_PKCE_CODE_VERIFIER_AGE } from './code_verifier';
|
|
6
|
+
export { isPkceChallengeExpired } from './is_pkce_challenge_expired';
|
package/dist/pkce/index.js
CHANGED
package/dist/pkce/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/pkce/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAK9C,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/pkce/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAK9C,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isPkceChallengeExpired(challenge_time: number): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is_pkce_challenge_expired.js","sourceRoot":"","sources":["../../src/pkce/is_pkce_challenge_expired.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAE7D,MAAM,UAAU,sBAAsB,CAAC,cAAsB;IAC3D,OAAO,IAAI,CAAC,GAAG,EAAE,GAAG,cAAc,GAAG,0BAA0B,CAAC;AAClE,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.10.
|
|
4
|
+
"version": "0.10.6",
|
|
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.25.8",
|
|
17
|
-
"@schemavaults/app-definitions": "0.6.
|
|
17
|
+
"@schemavaults/app-definitions": "0.6.23",
|
|
18
18
|
"crypto-js": "4.2.0"
|
|
19
19
|
},
|
|
20
20
|
"scripts": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"typescript": "5.8.3",
|
|
31
31
|
"tsc-alias": "1.8.16",
|
|
32
32
|
"@types/crypto-js": "4.2.0",
|
|
33
|
-
"bun-types": "1.3.
|
|
33
|
+
"bun-types": "1.3.11",
|
|
34
34
|
"eslint": "9.39.1",
|
|
35
35
|
"@eslint/js": "9.39.1",
|
|
36
36
|
"globals": "16.5.0",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
|
-
"packageManager": "bun@1.3.
|
|
43
|
+
"packageManager": "bun@1.3.11",
|
|
44
44
|
"exports": {
|
|
45
45
|
".": {
|
|
46
46
|
"types": "./dist/index.d.ts",
|