Unprocessable Entity on Signup
Hey, just ecountered an Error I haven't seen. This happens when trying to signup via the authClient. This is my code:
const { data, error } = await auth.signUp.email({
email: formData.email,
password: formData.password,
name: formData.name,
callbackURL: "/dashboard"
}, {
onRequest: () => {
setIsLoading(true)
},
onSuccess: () => {
toast.success("Account created successfully! Please check your email to verify your account.")
router.push("/login")
},
onError: (ctx: SignUpContext) => {
toast.error(ctx.error?.message || "Failed to create account")
},
})const { data, error } = await auth.signUp.email({
email: formData.email,
password: formData.password,
name: formData.name,
callbackURL: "/dashboard"
}, {
onRequest: () => {
setIsLoading(true)
},
onSuccess: () => {
toast.success("Account created successfully! Please check your email to verify your account.")
router.push("/login")
},
onError: (ctx: SignUpContext) => {
toast.error(ctx.error?.message || "Failed to create account")
},
})