Skip to main content
The frontend SDK lets users authorize integrations in your frontend. It is available on NPM as @nangohq/frontend.

Initiating Nango

Get your Public Key from the Project Settings page.

Collecting & storing end-user credentials

You store end-user credentials with the nango.auth method.
For OAuth, the nango.auth() method will trigger the OAuth flow in a popup, to let the user log in to their external account.

OAuth flows requiring extra configuration

Some API Providers require some connection-specific configuration (e.g. Zendesk, Shopify). For example, Zendesk has the following authorization URL, where the subdomain is specific to a user’s Zendesk account:
To set the subdomain pass in an additional configuration object to nango.auth():

Detect closed authorization page

To fail when the authorization window is closed before the authorization flow is completed pass in the extra parameter detectClosedAuthWindow to nango.auth()