@nangohq/frontend.
Initiating Nango
- Nango Cloud
- Localhost
- Self-hosted
Get your
Public Key from the Project Settings page.Collecting & storing end-user credentials
You store end-user credentials with thenango.auth method.
- OAuth
- API Key
- Basic Auth
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:nango.auth():
Detect closed authorization page
To fail when the authorization window is closed before the authorization flow is completed pass in the extra parameterdetectClosedAuthWindow to nango.auth()