From fdefe27e4a23968ac09d5ca6765cdc855728e653 Mon Sep 17 00:00:00 2001 From: DanilsGit Date: Fri, 9 May 2025 14:15:13 -0500 Subject: [PATCH] fix auth --- Dockerfile.local | 6 +- app/(auth)/login/_components/DesktopForm.tsx | 10 +- app/(auth)/login/_components/MobileForm.tsx | 8 +- app/(auth)/login/_lib/_actions/session.ts | 2 - app/(auth)/login/page.tsx | 12 +- app/(protected)/layout.tsx | 2 +- app/_apis/auth.ts | 2 +- app/_apis/myAxios.config.ts | 4 +- app/_hooks/useAuth.tsx | 17 +- app/_lib/_firebase/firebase.config.ts | 2 +- middleware.ts | 2 - package-lock.json | 2164 ++++++++++++------ 12 files changed, 1531 insertions(+), 700 deletions(-) diff --git a/Dockerfile.local b/Dockerfile.local index 758cfd1..7f1ab7b 100644 --- a/Dockerfile.local +++ b/Dockerfile.local @@ -4,10 +4,12 @@ RUN mkdir -p /app WORKDIR /app -COPY package.json package-lock.json ./ -RUN npm ci +COPY package.json ./ + +RUN npm install COPY . . + COPY next.config.ts ./next.config.ts EXPOSE 3000 diff --git a/app/(auth)/login/_components/DesktopForm.tsx b/app/(auth)/login/_components/DesktopForm.tsx index 255c346..b4c8d71 100644 --- a/app/(auth)/login/_components/DesktopForm.tsx +++ b/app/(auth)/login/_components/DesktopForm.tsx @@ -2,8 +2,8 @@ import { useFormStatus } from 'react-dom'; interface Props { setMode: (mode: string) => void; - registerAction: (e: React.FormEvent) => void; - loginAction: (e: React.FormEvent) => void; + registerAction: (payload: FormData) => void; + loginAction: (payload: FormData) => void; } export default function DesktopForm({ setMode, registerAction, loginAction }: Props) { @@ -16,7 +16,7 @@ export default function DesktopForm({ setMode, registerAction, loginAction }: Pr

Inicia sesión para acceder a tus salas

-
+