@rebasepro/server 0.29.3 → 0.30.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.es.js
CHANGED
|
@@ -5848,8 +5848,9 @@ function detectStorage() {
|
|
|
5848
5848
|
/**
|
|
5849
5849
|
* The flow mode a client uses when `authFlowMode` is not set.
|
|
5850
5850
|
*
|
|
5851
|
-
* Cookie in a browser. A backend
|
|
5852
|
-
*
|
|
5851
|
+
* Cookie in a browser. A Rebase backend keeps the refresh token in a cookie
|
|
5852
|
+
* and answers the body's with `""` (the runtime always; one booted with
|
|
5853
|
+
* `initializeRebaseBackend` unless it sets `cookieAuth: false`), so a browser
|
|
5853
5854
|
* client defaulting to json held nothing to renew with, and was signed out
|
|
5854
5855
|
* without a word once its access token expired, about an hour after sign-in.
|
|
5855
5856
|
*
|
|
@@ -31409,6 +31410,7 @@ async function buildRebaseBackend(options, announcements) {
|
|
|
31409
31410
|
}
|
|
31410
31411
|
const reCollectionAuth = safeAuthConfig.collection ? safeAuthConfig.collection.auth : void 0;
|
|
31411
31412
|
const collectionAuthConfig = typeof reCollectionAuth === "object" && reCollectionAuth !== null ? reCollectionAuth : void 0;
|
|
31413
|
+
const cookieAuth = safeAuthConfig.cookieAuth === false ? void 0 : safeAuthConfig.cookieAuth ?? {};
|
|
31412
31414
|
authAdapter = createBuiltinAuthAdapter({
|
|
31413
31415
|
authRepository: authConfigResult.authRepository ?? authConfigResult.userService,
|
|
31414
31416
|
jwt,
|
|
@@ -31429,7 +31431,7 @@ async function buildRebaseBackend(options, announcements) {
|
|
|
31429
31431
|
collectionAuthConfig,
|
|
31430
31432
|
enableMagicLink: safeAuthConfig.magicLink ?? false,
|
|
31431
31433
|
enableEmailOtp: safeAuthConfig.emailOtp ?? false,
|
|
31432
|
-
cookieAuth
|
|
31434
|
+
cookieAuth,
|
|
31433
31435
|
requireEmailVerification: safeAuthConfig.requireEmailVerification ?? false,
|
|
31434
31436
|
refreshTokenReuseIntervalSeconds: safeAuthConfig.refreshTokenReuseIntervalSeconds,
|
|
31435
31437
|
refreshTokenReuse: safeAuthConfig.refreshTokenReuse,
|
|
@@ -32724,7 +32726,7 @@ function realtimeSocketPath(basePath) {
|
|
|
32724
32726
|
* backend no MCP client calls never loads it.
|
|
32725
32727
|
*/
|
|
32726
32728
|
async function loadMcpApps() {
|
|
32727
|
-
const { MCP_APPS } = await import("./dist-
|
|
32729
|
+
const { MCP_APPS } = await import("./dist-DH2xBfrC.js");
|
|
32728
32730
|
return withProjectView(MCP_APPS, [...process.env.REBASE_MCP_VIEW ? [process.env.REBASE_MCP_VIEW] : [], ...servedFrontendPaths().map((frontend) => path.join(frontend, PROJECT_VIEW_FILE))], (file) => {
|
|
32729
32731
|
try {
|
|
32730
32732
|
return readFileSync(file, "utf8");
|
|
@@ -32738,7 +32740,7 @@ async function loadMcpApps() {
|
|
|
32738
32740
|
* app to the modules and names every view serves (`MCP_APP_MODULES`).
|
|
32739
32741
|
*/
|
|
32740
32742
|
async function loadAppCompiler() {
|
|
32741
|
-
const { compileApp } = await import("./dist-
|
|
32743
|
+
const { compileApp } = await import("./dist-DH2xBfrC.js");
|
|
32742
32744
|
return (source) => compileApp(source, MCP_APP_MODULES);
|
|
32743
32745
|
}
|
|
32744
32746
|
/** The collection registry a driver carries, if it has one: not part of `DataDriver`, so found by looking. */
|