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).
The Nango Frontend SDK may throw different types of errors during authentication and connection setup. Below is a list of all possible error types along with their meanings:
missingAuthToken
Occurs when neither a public key nor a connect session token is provided.
Message: “You must specify a public key OR a connect session token (cf. documentation).”
blocked_by_browser
Occurs when the browser blocks the popup window for authentication.
Message: “Modal blocked by browser”
invalidHostUrl
Occurs when the provided host URL is invalid.
Message: “Invalid URL provided for the Nango host.”
missingCredentials
Occurs when required credentials are not provided.
Message: “You must specify credentials.”
windowClosed
Occurs when the authentication window is closed before completing the flow.
Message: “The authorization window was closed before the authorization flow was completed”
connection_test_failed
Occurs when credential verification fails for certain integrations before the connection is established.
Message: “The given credentials were found to be invalid. Please check the credentials and try again.”
missing_connect_session_token
Occurs when attempting to reconnect without a session token.
Message: “Reconnect requires a session token”
resource_capped
Occurs when the resource usage limit has been reached.
Message: “Reached maximum number of allowed connections for your plan” or “Reached maximum number of connections with scripts enabled”