@schemavaults/auth-common 0.33.0 → 0.33.1
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.
|
@@ -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", "pkce_challenge_expired", "invalid_redirect_uri", "email_verification_required"];
|
|
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", "invalid_redirect_uri", "email_verification_required", "app_not_connected_to_api_server", "login_failure"];
|
|
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;
|
|
@@ -14,6 +14,8 @@ const ERROR_IDS = [
|
|
|
14
14
|
"pkce_challenge_expired",
|
|
15
15
|
"invalid_redirect_uri",
|
|
16
16
|
"email_verification_required",
|
|
17
|
+
"app_not_connected_to_api_server",
|
|
18
|
+
"login_failure",
|
|
17
19
|
];
|
|
18
20
|
export const ERROR_MESSAGE_CATALOG = {
|
|
19
21
|
unknown: "An unknown error occurred",
|
|
@@ -31,6 +33,8 @@ export const ERROR_MESSAGE_CATALOG = {
|
|
|
31
33
|
pkce_challenge_expired: "Your authorization session has expired. Please return to the requesting application and try again.",
|
|
32
34
|
invalid_redirect_uri: "The redirect URI presented by the requesting application is not registered for it. For your safety, login has been blocked.",
|
|
33
35
|
email_verification_required: "Please verify your email address before continuing to the requesting application.",
|
|
36
|
+
app_not_connected_to_api_server: "This application is not connected to the API server it requested access to, so you could not be signed in. If you are the site admin, connect the application to the API server on the auth server.",
|
|
37
|
+
login_failure: "We could not finish signing you in to this application. Please try again, and contact the site admin if the problem persists.",
|
|
34
38
|
};
|
|
35
39
|
export function isValidErrorId(id) {
|
|
36
40
|
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;IAC7B,wBAAwB;IACxB,sBAAsB;IACtB,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;IACxB,sBAAsB;IACtB,6BAA6B;IAC7B,iCAAiC;IACjC,eAAe;CACqB,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,+DAA+D;IACjE,qBAAqB,EACnB,wEAAwE;IAC1E,0BAA0B,EACxB,4DAA4D;IAC9D,uBAAuB,EACrB,wHAAwH;IAC1H,2BAA2B,EACzB,qFAAqF;IACvF,sBAAsB,EACpB,oGAAoG;IACtG,oBAAoB,EAClB,6HAA6H;IAC/H,2BAA2B,EACzB,mFAAmF;IACrF,+BAA+B,EAC7B,qMAAqM;IACvM,aAAa,EACX,+HAA+H;CAClI,CAAC;AAEF,MAAM,UAAU,cAAc,CAAC,EAAU;IACvC,OAAO,SAAS,CAAC,QAAQ,CAAC,EAA8C,CAAC,CAAC;AAC5E,CAAC"}
|