diff --git a/apps/backend/src/app/api/latest/auth/otp/sign-in/verification-code-handler.tsx b/apps/backend/src/app/api/latest/auth/otp/sign-in/verification-code-handler.tsx index cb6710d30..1da5ef30c 100644 --- a/apps/backend/src/app/api/latest/auth/otp/sign-in/verification-code-handler.tsx +++ b/apps/backend/src/app/api/latest/auth/otp/sign-in/verification-code-handler.tsx @@ -77,6 +77,8 @@ export const signInVerificationCodeHandler = createVerificationCodeHandler({ user = await usersCrudHandlers.adminRead({ tenancy, user_id: data.user_id, + // This might happen if the user was deleted but the code is still valid + allowedErrorTypes: [KnownErrors.UserNotFound], }); }