form this is being triggered:
const response = await signIn('credentials', {
email: formData.get('email'),
password: formData.get('password'),
redirect: false,
});
I set the redirect to false so I can catch the error messages in the login form, but after cheking there are no errors, I want to redirect('dashboard') and I get a NEXT_REDIRECT error. Any clue?
You didn't really say what is going wrong
Обсуждают сегодня