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.

add return to dev auth

Sara Vieira81a27c3ea374
diff --git a/app/routes/auth/dev.tsx b/app/routes/auth/dev.tsx
index ea6fa30c4c..32cbe47da1 100644
--- a/app/routes/auth/dev.tsx
+++ b/app/routes/auth/dev.tsx
@@ -2,6 +2,10 @@ import { ActionFunction } from "@remix-run/node";
import config from "~/config";
import { authenticator } from "~/services/auth.server";
+export default function Dev() {
+ return null;
+}
+
export const action: ActionFunction = ({ request }) => {
return authenticator.authenticate("dev", request, {
successRedirect: config.dashboardPath,
diff --git a/app/routes/auth/github.tsx b/app/routes/auth/github.tsx
index 1386513751..eb1ef90951 100644
--- a/app/routes/auth/github.tsx
+++ b/app/routes/auth/github.tsx
@@ -3,6 +3,10 @@ import config from "~/config";
import { authenticator } from "~/services/auth.server";
import { ensureUserCookie } from "~/shared/session";
+export default function GH() {
+ return null;
+}
+
export const action: ActionFunction = async ({ request }) => {
const { userId } = await ensureUserCookie(request);
return authenticator.authenticate("github", request, {
diff --git a/app/routes/auth/google.tsx b/app/routes/auth/google.tsx
index e43354c788..06c06a589d 100644
--- a/app/routes/auth/google.tsx
+++ b/app/routes/auth/google.tsx
@@ -3,6 +3,10 @@ import config from "~/config";
import { authenticator } from "~/services/auth.server";
import { ensureUserCookie } from "~/shared/session";
+export default function Google() {
+ return null;
+}
+
export const loader: LoaderFunction = () => redirect("/login");
export const action: ActionFunction = async ({ request }) => {
diff --git a/app/services/auth.server.ts b/app/services/auth.server.ts
index 1303bfbc75..eaa9389177 100644
--- a/app/services/auth.server.ts
+++ b/app/services/auth.server.ts
@@ -57,7 +57,6 @@ if (process.env.DEV_LOGIN === "true") {
const secret = form.get("secret");
if (secret === process.env.AUTH_SECRET) {
- console.log(secret, process.env.AUTH_SECRET);
try {
const user = await createOrLoginWithDev(secret);
return user;