Nango provides a UI component that guides your app’s users through automatically and securely setting up an integration. This UI is hosted on Nango’s servers and requires minimal setup on your end to get started quickly.
This is the recommended way to use Nango in your frontend.
For OAuth 2, override the integration’s client ID with a connection-level client ID. This is useful when your users bring their own OAuth 2 app (e.g. Netsuite).
For OAuth 2, override the integration’s client secret with a connection-level client secret. This is useful when your users bring their own OAuth 2 app (e.g. Netsuite).
For some integrations using API Key or Basic authentication methods, Nango automatically verifies the provided credentials by making a test request to the integration’s API. This verification ensures that the credentials are valid before creating the connection.
If the credentials are invalid, Nango will throw an error with the following structure:
{"error":{"code":"connection_test_failed","message":"The given credentials were found to be invalid. Please check the credentials and try again."}}
You can handle this error in your code to provide appropriate feedback to your end users: