@uipath/auth 1.199.0 → 1.200.0-preview.117
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.browser.js +11 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.js +215 -18426
- package/dist/robotClientFallback.d.ts +18 -3
- package/package.json +2 -2
package/dist/index.browser.js
CHANGED
|
@@ -18627,8 +18627,17 @@ var parseResourceUrl = (url) => {
|
|
|
18627
18627
|
tenantName: segments[1]
|
|
18628
18628
|
};
|
|
18629
18629
|
};
|
|
18630
|
+
var ROBOT_CLIENT_LOADER_KEY = Symbol.for("@uipath/auth/RobotClientLoader");
|
|
18631
|
+
var getRegisteredRobotClientLoader = () => {
|
|
18632
|
+
const loader = globalThis[ROBOT_CLIENT_LOADER_KEY];
|
|
18633
|
+
return typeof loader === "function" ? loader : undefined;
|
|
18634
|
+
};
|
|
18630
18635
|
var defaultLoadModule = async () => {
|
|
18631
|
-
const
|
|
18636
|
+
const hostLoader = getRegisteredRobotClientLoader();
|
|
18637
|
+
if (!hostLoader) {
|
|
18638
|
+
return;
|
|
18639
|
+
}
|
|
18640
|
+
const [error, mod] = await catchError(() => hostLoader());
|
|
18632
18641
|
if (error || !mod) {
|
|
18633
18642
|
return;
|
|
18634
18643
|
}
|
|
@@ -19651,4 +19660,4 @@ export {
|
|
|
19651
19660
|
AUTH_FLOW_ENV_VAR
|
|
19652
19661
|
};
|
|
19653
19662
|
|
|
19654
|
-
//# debugId=
|
|
19663
|
+
//# debugId=EAD5BC5B9162A5E464756E2164756E21
|
package/dist/index.d.ts
CHANGED
|
@@ -2,13 +2,14 @@ export * from "./authContext";
|
|
|
2
2
|
export * from "./authProfile";
|
|
3
3
|
export * from "./clientCredentials";
|
|
4
4
|
export { type AuthFileConfig, InvalidBaseUrlError, setAuthFileConfig, } from "./config";
|
|
5
|
-
export { AUTH_CANCELLED_ERROR_CODE } from "./constants";
|
|
5
|
+
export { AUTH_CANCELLED_ERROR_CODE, DEFAULT_AUTH_TIMEOUT_MS, } from "./constants";
|
|
6
6
|
export { ENFORCE_ROBOT_AUTH_VAR, ENV_AUTH_ENABLE_VAR, ENV_AUTH_VARS, EnvAuthConfigError, isEnvAuthEnabled, isRobotAuthEnforced, readAuthFromEnv, } from "./envAuth";
|
|
7
7
|
export { FederatedCredentialsAuthenticationError, federatedCredentialsLogin, JWT_BEARER_ASSERTION_TYPE, } from "./federatedCredentials";
|
|
8
8
|
export * from "./interactive";
|
|
9
9
|
export * from "./loginStatus";
|
|
10
10
|
export * from "./logout";
|
|
11
11
|
export { clearRefreshBreaker, loadRefreshBreaker, type RefreshBreakerState, refreshTokenFingerprint, saveRefreshBreaker, } from "./refreshCircuitBreaker";
|
|
12
|
+
export { type RobotClientModuleLoader, registerRobotClientLoader, } from "./robotClientFallback";
|
|
12
13
|
export { INVALID_TENANT_CODE, InvalidTenantError, isTenantSelectionError, type SelectFromList, selectTenantWithDeps, TENANT_SELECTION_REQUIRED_CODE, TenantSelectionError, TenantSelectionRequiredError, } from "./selectTenant";
|
|
13
14
|
export { AUTH_TIMEOUT_ERROR_CODE } from "./server";
|
|
14
15
|
export { fetchTenantsAndOrganizations, type Tenant, type TenantsAndOrganizations, } from "./tenantSelection";
|