ct

if TYPE_CHECKING:
    from supertokens_python.recipe.emailpassword.interfaces import (
        APIInterface,
        APIOptions,
    )

from supertokens_python.exceptions import raise_bad_input_exception
from supertokens_python.utils import send_200_response

from .utils import validate_form_fields_or_throw_error


async def handle_generate_password_reset_token_api(
    tenant_id: str,
    api_implementation: APIInterface,
    api_options: APIOptions,
    user_context: Dict[str, Any],
):
    if api_impl