From 0311240c8b74b7593373d038515ed32ce98c32c8 Mon Sep 17 00:00:00 2001 From: Victor Bojica Date: Fri, 14 Feb 2025 13:47:22 +0200 Subject: [PATCH] removed email exists error message --- lib/ts/recipe/webauthn/api/signup.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/ts/recipe/webauthn/api/signup.ts b/lib/ts/recipe/webauthn/api/signup.ts index 0b59150a6..f78f30e8d 100644 --- a/lib/ts/recipe/webauthn/api/signup.ts +++ b/lib/ts/recipe/webauthn/api/signup.ts @@ -66,13 +66,6 @@ export default async function signUpAPI( status: "OK", ...getBackwardsCompatibleUserInfo(options.req, result, userContext), }); - } else if (result.status === "GENERAL_ERROR") { - send200Response(options.res, result); - } else if (result.status === "EMAIL_ALREADY_EXISTS_ERROR") { - throw new STError({ - type: STError.BAD_INPUT_ERROR, - message: "This email already exists. Please sign in instead.", - }); } else { send200Response(options.res, result); }