Skip to content

Conversation

@ahasseyp-paragon
Copy link
Contributor

Brief Summary

add multi-auth support to field options queries

Detailed Summary

This PR implements multi-account authentication support for field options by creating a new credential provider context and threading the selected credential ID through all components that fetch field options. This allows field options to be fetched for specific credentials when multiple accounts are connected to the same integration.

The implementation creates a new React context provider that stores the selected credential ID and makes it accessible to all field input components. All components that use useFieldOptions hook have been updated to retrieve the credential ID from this context and pass it to their queries.

Steps to Test

  1. Configure an integration that supports multiple accounts
  2. Connect multiple accounts for the same integration
  3. Open the integration modal and navigate to a workflow with dynamic fields
  4. Verify that field options load correctly for the selected credential
  5. Switch between different credentials and verify field options update accordingly
  6. Test with all field types: combo inputs, dynamic enums, field mappers, and variable inputs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants