Use the Nango frontend SDK to get the user’s permission to access their external data.Nango guides the user through the (O)Auth flow in a popup window.Store the connectionId & integrationId in your database to retrieve the user’s data later.
Frontend: Trigger the OAuth flow.
Copy
Ask AI
const integrationId = 'zendesk';const connectionId = 'user123';// Shows authorization popup to the user.const result = await nango.auth(integrationId, connectionId); if (result.ok) { // The auth flow succeeded. The integration is set up! saveToDatabase(connectionId, integrationId);}
When a new user connects your integration, Nango automatically starts fetching their data (e.g. issues, contacts, files, etc.) in the background.
Nango uses webhooks to notify your backend when external user data has been added, updated or deleted. Nango will only alert you when there are actual changes.
When you receive the webhook, fetch the most recent data from Nango using the backend SDK or API.Nango returns the data in the schema of your choice, which can be standardized across different APIs.You can directly save this data to your database, or process it further, as needed.