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 imports

Sara Vieira9ced96e609e5
diff --git a/app/routes/auth/dev.tsx b/app/routes/auth/dev.tsx
index b35442f343..fe018768c4 100644
--- a/app/routes/auth/dev.tsx
+++ b/app/routes/auth/dev.tsx
@@ -1,7 +1,7 @@
import { ActionFunction, redirect } from "@remix-run/node";
import config from "~/config";
import { authenticator } from "~/services/auth.server";
-import { LOGIN_ERROR_CODES } from "~/shared/session/useLoginErrors";
+import { AUTH_PROVIDERS } from "~/shared/session/useLoginErrors";
export default function Dev() {
return null;
@@ -18,7 +18,7 @@ export const action: ActionFunction = async ({ request }) => {
if (error instanceof Response) return error;
if (error instanceof Error) {
return redirect(
- `${config.loginPath}?error=${LOGIN_ERROR_CODES.LOGIN_DEV}&message=${
+ `${config.loginPath}?error=${AUTH_PROVIDERS.LOGIN_DEV}&message=${
error?.message || ""
}`
);
diff --git a/app/routes/auth/github.tsx b/app/routes/auth/github.tsx
index 7b8486e8f0..f49cbdbed7 100644
--- a/app/routes/auth/github.tsx
+++ b/app/routes/auth/github.tsx
@@ -2,7 +2,7 @@ import { ActionFunction, redirect } from "@remix-run/node";
import config from "~/config";
import { authenticator } from "~/services/auth.server";
import { ensureUserCookie } from "~/shared/session";
-import { LOGIN_ERROR_CODES } from "~/shared/session/useLoginErrors";
+import { AUTH_PROVIDERS } from "~/shared/session/useLoginErrors";
export default function GH() {
return null;
@@ -24,7 +24,7 @@ export const action: ActionFunction = async ({ request }) => {
if (error instanceof Error) {
console.log(error);
return redirect(
- `${config.loginPath}?error=${LOGIN_ERROR_CODES.LOGIN_GITHUB}&message=${
+ `${config.loginPath}?error=${AUTH_PROVIDERS.LOGIN_GITHUB}&message=${
error?.message || ""
}`
);
diff --git a/app/routes/auth/google.tsx b/app/routes/auth/google.tsx
index ccabf94682..f6ef060045 100644
--- a/app/routes/auth/google.tsx
+++ b/app/routes/auth/google.tsx
@@ -2,7 +2,7 @@ import { ActionFunction, LoaderFunction, redirect } from "@remix-run/node";
import config from "~/config";
import { authenticator } from "~/services/auth.server";
import { ensureUserCookie } from "~/shared/session";
-import { LOGIN_ERROR_CODES } from "~/shared/session/useLoginErrors";
+import { AUTH_PROVIDERS } from "~/shared/session/useLoginErrors";
export default function Google() {
return null;
@@ -26,7 +26,7 @@ export const action: ActionFunction = async ({ request }) => {
if (error instanceof Error) {
console.log(error);
return redirect(
- `${config.loginPath}?error=${LOGIN_ERROR_CODES.LOGIN_GOOGLE}&message=${
+ `${config.loginPath}?error=${AUTH_PROVIDERS.LOGIN_GOOGLE}&message=${
error?.message || ""
}`
);