Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

fix: Do not check user authenticated on trpc (#3330)

Ivan Starkov29abc4782044
diff --git a/apps/builder/app/routes/trpc.$.ts b/apps/builder/app/routes/trpc.$.ts
index b57954d08a..ad633a3a22 100644
--- a/apps/builder/app/routes/trpc.$.ts
+++ b/apps/builder/app/routes/trpc.$.ts
@@ -1,17 +1,10 @@
// eslint-disable-next-line import/no-internal-modules
import { fetchRequestHandler } from "@trpc/server/adapters/fetch";
import type { ActionFunctionArgs } from "@remix-run/server-runtime";
-import { findAuthenticatedUser } from "~/services/auth.server";
import { createContext } from "~/shared/context.server";
import { appRouter } from "~/services/trcp-router.server";
export const action = async ({ request }: ActionFunctionArgs) => {
- const authenticatedUser = await findAuthenticatedUser(request);
-
- if (authenticatedUser === null) {
- throw new Error("Not authenticated");
- }
-
// https://trpc.io/docs/server/adapters/fetch
const response = await fetchRequestHandler({
req: request,