I have added custom signin page to [...nextauth].js file
pages: { signIn: "/signin", },
now it routes to my custom signin page,
In my page i am using a form and on submit im calling this function:
`const handleSubmit = async (e) => {
const email = emailRef.current.value;
const password = passwordRef.current.value;
const res = await signIn("credentials", {
email: email,
password: email,
redirect: false,
});
console.log(res);
};`
even if i add redirect to false, it refreshes it self and the api fetch is not completing, but if i do it in the default signin page, it works, what can be wrong there ?