diff --git a/apps/web/package.json b/apps/web/package.json index cd96c3c7..bca5bec0 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -17,6 +17,7 @@ "@headlessui/react": "^2.2.0", "@hookform/resolvers": "^3.3.4", "@kan/api": "workspace:*", + "@kan/auth": "workspace:*", "@kan/db": "workspace:^", "@kan/shared": "workspace:^", "@kan/supabase": "workspace:^", diff --git a/apps/web/src/components/AuthForm.tsx b/apps/web/src/components/AuthForm.tsx index b1a6dfa2..dcdf03b1 100644 --- a/apps/web/src/components/AuthForm.tsx +++ b/apps/web/src/components/AuthForm.tsx @@ -3,6 +3,8 @@ import { useForm } from "react-hook-form"; import { FaGoogle } from "react-icons/fa"; import { z } from "zod"; +import { authClient } from "@kan/auth"; + import Button from "~/components/Button"; import Input from "~/components/Input"; import { api } from "~/utils/api"; @@ -55,7 +57,12 @@ export function Auth({ setIsMagicLinkSent }: AuthProps) {