diff --git a/src/features/auth/auth.server.ts b/src/features/auth/auth.server.ts index 8cd6d10..318cdd0 100644 --- a/src/features/auth/auth.server.ts +++ b/src/features/auth/auth.server.ts @@ -97,6 +97,12 @@ function createAuth() { }, database: { joins: true, // Enable database joins for better performance + // `getAuth` migrates the schema itself. Better Auth's own check is + // one promise per isolate, started in the background of the request + // that builds the instance; on Workers a request that ends first + // (an unauthenticated MCP call, say) leaves it unable to settle, and + // every later request in that isolate fails with a 500. + validateSchema: false, }, }, plugins: [