diff options
| author | Mohamed Bassem <me@mbassem.com> | 2026-02-01 11:05:30 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-01 11:05:30 +0000 |
| commit | e516a525bca6f319a2f003e9677624e968b277bf (patch) | |
| tree | dd467b85f5f3a238f72ec6c76ce42eceb65f20b3 /apps/web/components/signin | |
| parent | cc638c2a996a5487b101b1306c524eaaf8802604 (diff) | |
| download | karakeep-e516a525bca6f319a2f003e9677624e968b277bf.tar.zst | |
refactor: centralize auth imports through new client module (#2437)
* refactor(web): centralize next-auth client-side utilities
Create lib/auth/client.ts to re-export all next-auth/react APIs (useSession,
signIn, signOut, SessionProvider) from a single location. This prepares
for future auth provider replacement by isolating the next-auth dependency.
https://claude.ai/code/session_01RLLL6SquzmegG6wKHdT3Fm
* format
---------
Co-authored-by: Claude <noreply@anthropic.com>
Diffstat (limited to 'apps/web/components/signin')
| -rw-r--r-- | apps/web/components/signin/CredentialsForm.tsx | 2 | ||||
| -rw-r--r-- | apps/web/components/signin/SignInProviderButton.tsx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/web/components/signin/CredentialsForm.tsx b/apps/web/components/signin/CredentialsForm.tsx index 4a4a0533..0ff5b1d0 100644 --- a/apps/web/components/signin/CredentialsForm.tsx +++ b/apps/web/components/signin/CredentialsForm.tsx @@ -14,10 +14,10 @@ import { FormMessage, } from "@/components/ui/form"; import { Input } from "@/components/ui/input"; +import { signIn } from "@/lib/auth/client"; import { useClientConfig } from "@/lib/clientConfig"; import { zodResolver } from "@hookform/resolvers/zod"; import { AlertCircle, Lock } from "lucide-react"; -import { signIn } from "next-auth/react"; import { useForm } from "react-hook-form"; import { z } from "zod"; diff --git a/apps/web/components/signin/SignInProviderButton.tsx b/apps/web/components/signin/SignInProviderButton.tsx index edb411e6..4b218e2a 100644 --- a/apps/web/components/signin/SignInProviderButton.tsx +++ b/apps/web/components/signin/SignInProviderButton.tsx @@ -1,7 +1,7 @@ "use client"; import { Button } from "@/components/ui/button"; -import { signIn } from "next-auth/react"; +import { signIn } from "@/lib/auth/client"; export default function SignInProviderButton({ provider, |
