We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
server will break after putting in an wrong password.
The text was updated successfully, but these errors were encountered:
I'm also facing the same issue.. If you've resolved it please do let me know
Sorry, something went wrong.
you have to wrap the sigin in another function
"use server"; export async function mySignIn( provider: string, credentials?: z.infer<typeof userLoginForm>, ) { try { if (provider == "credentials") { await signIn(provider, { ...credentials, redirect: false}); } else await naSignIn(provider, { redirect: false }); } catch (error) { if (isRedirectError(error)) { return error.message; } else if (error instanceof CredentialsSignin) { return error.cause; } else if (error instanceof ZodError) { return error.message; } else if (error instanceof Error) { console.log(error); return error.message; } else if (typeof error === "string") { return error; } else { return "something went wrong"; } } redirect("/") }
No branches or pull requests
server will break after putting in an wrong password.
The text was updated successfully, but these errors were encountered: