diff --git a/auth.config.ts b/auth.config.ts index 587b64197f..93d8387346 100644 --- a/auth.config.ts +++ b/auth.config.ts @@ -33,7 +33,6 @@ export const authConfig = { callbacks: { authorized({ auth, request: { nextUrl } }) { const isLoggedIn = !!auth?.user; - // console.log({ auth }, "llegas o no"); const isOnDashboard = nextUrl.pathname.startsWith("/"); if (isOnDashboard) { if (isLoggedIn) return true; @@ -78,7 +77,6 @@ export const authConfig = { const user = await getUser(email, password); if (!user) return null; - // console.log({ user }); return user; }, }), diff --git a/components/auth/AuthForm.tsx b/components/auth/AuthForm.tsx index d078e483c9..bef65115d0 100644 --- a/components/auth/AuthForm.tsx +++ b/components/auth/AuthForm.tsx @@ -42,8 +42,6 @@ export const AuthForm = ({ type }: { type: string }) => { } }, [state]); - console.log(state, "el state desde el AuthForm"); - const onSubmit = async (data: z.infer) => { // Do something with the form values // this will be type-safe and validated @@ -56,10 +54,10 @@ export const AuthForm = ({ type }: { type: string }) => { }); } // if (type === "sign-up") { - // const newUser = await signUpNew(data); + // const newUser = await signUp(data); // } } catch (error) { - console.log(error); + console.error(error); } }; diff --git a/hooks/useLocalStorage.ts b/hooks/useLocalStorage.ts index 405064fb57..0d5e70a957 100644 --- a/hooks/useLocalStorage.ts +++ b/hooks/useLocalStorage.ts @@ -21,7 +21,7 @@ export const useLocalStorage = ( setState(JSON.parse(value)); } } catch (error) { - console.log(error); + console.error(error); } }, [key]); @@ -38,7 +38,7 @@ export const useLocalStorage = ( window.localStorage.setItem(key, JSON.stringify(valueToStore)); setState(valueToStore); } catch (error) { - console.log(error); + console.error(error); } };