openxiangda 1.0.65 → 1.0.66

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openxiangda",
3
- "version": "1.0.65",
3
+ "version": "1.0.66",
4
4
  "description": "OpenXiangda CLI, workspace build tools, runtime SDK, and form components.",
5
5
  "private": false,
6
6
  "bin": {
@@ -1189,6 +1189,7 @@ var AUTH_LOGIN_URL_ENV_KEYS = [
1189
1189
  "VITE_BATH_AUTH_URL",
1190
1190
  "BATH_AUTH_URL"
1191
1191
  ];
1192
+ var DEFAULT_PLATFORM_LOGIN_URL = "/platform/login";
1192
1193
  var normalizeOptionalString = (value) => {
1193
1194
  const text = typeof value === "string" ? value.trim() : "";
1194
1195
  return text || void 0;
@@ -1270,9 +1271,18 @@ var redirectAfterLogout = (context, options) => {
1270
1271
  );
1271
1272
  return;
1272
1273
  }
1273
- if (options.fallback !== "none") {
1274
+ if (options.fallback === "none") {
1275
+ return;
1276
+ }
1277
+ if (options.fallback === "reload") {
1274
1278
  reloadCurrentPage();
1279
+ return;
1275
1280
  }
1281
+ const redirectLoginUrl = DEFAULT_PLATFORM_LOGIN_URL;
1282
+ performRedirect(
1283
+ buildAuthRedirectUrl(redirectLoginUrl, callbackUrl, options.callbackParamName),
1284
+ options
1285
+ );
1276
1286
  };
1277
1287
  var createPageSdk = (context) => {
1278
1288
  const request = async (options) => {
@@ -3621,7 +3631,7 @@ var useRuntimeAuth = () => {
3621
3631
  if (configuredLoginUrl) {
3622
3632
  return attachCallback(configuredLoginUrl, redirectUri);
3623
3633
  }
3624
- return attachCallback("/login", redirectUri);
3634
+ return attachCallback("/platform/login", redirectUri);
3625
3635
  },
3626
3636
  [runtime.data?.app, runtime.fetchImpl, runtime.servicePrefix]
3627
3637
  );