/* eslint-disable @typescript-eslint/no-unsafe-assignment */ import Link from "next/link"; import Image from "next/image"; import Splash from "public/splash.jpg"; import { Input } from "~/components/ui/input"; import { Button } from "~/components/ui/button"; import { signIn } from "next-auth/react"; import { useState } from "react"; import { Loader2 } from "lucide-react"; import { useRouter } from "next/router"; export default function AuthenticationPage() { const [details, setDetails] = useState({ email: "", password: "" }); const [loading, setLoading] = useState(false); const router = useRouter(); const handleSignIn = async () => { setLoading(true); await signIn("credentials", { email: details.email, password: details.password, callbackUrl: (router.query.callbackUrl as string) ?? "/", }); setLoading(false); }; return ( <>
Testimonial
{/*
Zamaqo

“Zamaqo has revolutionized our development workflow by spotting errors early, drastically cutting debugging hours and development costs across all our companies.”

Udo Grünhoff
*/}

Sign in to your account

Enter your details below

setDetails({ ...details, email: e.target.value }) } /> setDetails({ ...details, password: e.target.value }) } />

By clicking continue, you agree to our{" "} Terms of Service {" "} and{" "} Privacy Policy .

); }