"use client"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardHeader, CardTitle, CardDescription, CardFooter, } from "@/components/ui/card"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { Checkbox } from "@/components/ui/checkbox"; import { useState, useTransition } from "react"; import { Loader2 } from "lucide-react"; import { client, signIn } from "@/lib/auth-client"; import Link from "next/link"; import { cn } from "@/lib/utils"; import { useRouter, useSearchParams } from "next/navigation"; import { toast } from "sonner"; import { getCallbackURL } from "@/lib/shared"; export default function SignIn() { const [email, setEmail] = useState(""); const [password, setPassword] = useState(""); const [loading, startTransition] = useTransition(); const [rememberMe, setRememberMe] = useState(false); const router = useRouter(); const params = useSearchParams(); const LastUsedIndicator = () => ( Last Used ); return ( Sign In Enter your email below to login to your account
{ setEmail(e.target.value); }} value={email} />
Forgot your password?
setPassword(e.target.value)} />
{ setRememberMe(!rememberMe); }} />

built with{" "} better-auth.

); }