fixed error inheritance structure

This commit is contained in:
Zai Shi 2024-04-14 08:01:44 +02:00
parent 7c501bee3c
commit ed90a7efcf
2 changed files with 2 additions and 1 deletions

View File

@ -62,6 +62,7 @@ Terminology: "Invalid" means it was found but not valid, "Not found" means it wa
- `PasswordResetCodeNotFound`: The password reset code does not exist for this project. (404)
- `PasswordResetCodeExpired`: The password reset code has expired. (400)
- `PasswordResetCodeAlreadyUsed`: The password reset code has already been used. (400)
- `PasswordMismatch`: The given password does not match the user's password. (400)
## Project Authentication

View File

@ -528,7 +528,7 @@ const EmailVerificationError = createKnownErrorConstructor(
);
const EmailVerificationCodeError = createKnownErrorConstructor(
KnownError,
EmailVerificationError,
"EMAIL_VERIFICATION_CODE_ERROR",
"inherit",
"inherit",