import CenteredForm from "@/layouts/CenteredForm"; import { signIn } from "next-auth/react"; import { useRouter } from "next/router"; import { useState } from "react"; import toast from "react-hot-toast"; export default function EmailConfirmaion() { const router = useRouter(); const [submitLoader, setSubmitLoader] = useState(false); const resend = async () => { setSubmitLoader(true); const load = toast.loading("Authenticating..."); const res = await signIn("email", { email: decodeURIComponent(router.query.email as string), callbackUrl: "/", redirect: false, }); toast.dismiss(load); setSubmitLoader(false); toast.success("Verification email sent."); }; return (

Please check your Email

A sign in link has been sent to your email address. If you don&apost see the email, check your spam folder.

Resend Email
); }