credentialsFormValidator option allows developers to inject a custom asynchronous validation callback into the widget.
This callback will be called when the tenant submits their credentials in the widget. If the custom validator returns an errorMessage, it will be displayed to the tenant.
Syntax
Parameters
oldConfig: The current configuration settings before the tenant’s update.newConfig: The updated configuration settings after the tenant’s modification.availableEntity: The availableSource, availableTarget, or availableConnector that they are attempting linking otflowIdtenantId
Example Usage
Below is a simple example demonstrating how to implement thecredentialsFormValidator: