@objectstack/runtime 5.0.0 → 5.1.0
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.cjs +0 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +0 -11
- package/dist/index.js.map +1 -1
- package/package.json +16 -16
package/dist/index.js
CHANGED
|
@@ -40792,17 +40792,6 @@ var AuthProxyPlugin = class {
|
|
|
40792
40792
|
}
|
|
40793
40793
|
}
|
|
40794
40794
|
try {
|
|
40795
|
-
try {
|
|
40796
|
-
const pubCfg = typeof authSvc?.getPublicConfig === "function" ? authSvc.getPublicConfig() : null;
|
|
40797
|
-
const ssoProviders = Array.isArray(pubCfg?.socialProviders) ? pubCfg.socialProviders : [];
|
|
40798
|
-
const ssoWired = ssoProviders.some(
|
|
40799
|
-
(p) => p?.enabled !== false && p?.id === "objectstack-cloud"
|
|
40800
|
-
);
|
|
40801
|
-
if (ssoWired) {
|
|
40802
|
-
return c.json({ hasOwner: true });
|
|
40803
|
-
}
|
|
40804
|
-
} catch {
|
|
40805
|
-
}
|
|
40806
40795
|
const dataEngine = typeof authSvc?.getDataEngine === "function" ? authSvc.getDataEngine() : null;
|
|
40807
40796
|
if (!dataEngine || typeof dataEngine.count !== "function") {
|
|
40808
40797
|
return c.json({ hasOwner: true });
|