Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: avoid duplicate input in basic auth (#894)
`_collect_input_fields` takes user input, we should only be calling it once. <!-- ELLIPSIS_HIDDEN --> ---- > [!IMPORTANT] > Fix duplicate input collection in `_handle_basic_auth` by reusing `auth_config` in `add.py`. > > - **Behavior**: > - In `_handle_basic_auth` in `add.py`, `_collect_input_fields` is now called once and its result is reused for `auth_config` and `field_inputs`. > - **Functions**: > - `_handle_basic_auth` now stores the result of `_collect_input_fields` in `auth_config` and reuses it, preventing duplicate input collection. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=ComposioHQ%2Fcomposio&utm_source=github&utm_medium=referral)<sup> for db48d78. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
- Loading branch information