fix: error message on existing user

This commit is contained in:
Bereket Engida
2024-10-22 16:13:56 +03:00
parent c5a876a6de
commit fd833e6f3f

View File

@@ -75,7 +75,7 @@ export const signUpEmail = <O extends BetterAuthOptions>() =>
if (dbUser?.user) {
ctx.context.logger.info(`Sign-up attempt for existing email: ${email}`);
throw new APIError("UNPROCESSABLE_ENTITY", {
message: "Failed to create user",
message: "User with this email already exists",
});
}