Skip to content

Commit

Permalink
removed email exists error message
Browse files Browse the repository at this point in the history
  • Loading branch information
niftyvictor committed Feb 14, 2025
1 parent 3276174 commit 0311240
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/ts/recipe/webauthn/api/signup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 0311240

Please sign in to comment.