mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
fixed error inheritance structure
This commit is contained in:
parent
7c501bee3c
commit
ed90a7efcf
@ -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
|
||||
|
||||
@ -528,7 +528,7 @@ const EmailVerificationError = createKnownErrorConstructor(
|
||||
);
|
||||
|
||||
const EmailVerificationCodeError = createKnownErrorConstructor(
|
||||
KnownError,
|
||||
EmailVerificationError,
|
||||
"EMAIL_VERIFICATION_CODE_ERROR",
|
||||
"inherit",
|
||||
"inherit",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user