openxiangda 1.0.65 → 1.0.67

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.
@@ -1112,6 +1112,7 @@ var AUTH_LOGIN_URL_ENV_KEYS = [
1112
1112
  "VITE_BATH_AUTH_URL",
1113
1113
  "BATH_AUTH_URL"
1114
1114
  ];
1115
+ var DEFAULT_PLATFORM_LOGIN_URL = "/platform/login";
1115
1116
  var normalizeOptionalString = (value) => {
1116
1117
  const text = typeof value === "string" ? value.trim() : "";
1117
1118
  return text || void 0;
@@ -1193,9 +1194,18 @@ var redirectAfterLogout = (context, options) => {
1193
1194
  );
1194
1195
  return;
1195
1196
  }
1196
- if (options.fallback !== "none") {
1197
+ if (options.fallback === "none") {
1198
+ return;
1199
+ }
1200
+ if (options.fallback === "reload") {
1197
1201
  reloadCurrentPage();
1202
+ return;
1198
1203
  }
1204
+ const redirectLoginUrl = DEFAULT_PLATFORM_LOGIN_URL;
1205
+ performRedirect(
1206
+ buildAuthRedirectUrl(redirectLoginUrl, callbackUrl, options.callbackParamName),
1207
+ options
1208
+ );
1199
1209
  };
1200
1210
  var createPageSdk = (context) => {
1201
1211
  const request = async (options) => {
@@ -3520,7 +3530,7 @@ var useRuntimeAuth = () => {
3520
3530
  if (configuredLoginUrl) {
3521
3531
  return attachCallback(configuredLoginUrl, redirectUri);
3522
3532
  }
3523
- return attachCallback("/login", redirectUri);
3533
+ return attachCallback("/platform/login", redirectUri);
3524
3534
  },
3525
3535
  [runtime.data?.app, runtime.fetchImpl, runtime.servicePrefix]
3526
3536
  );