Knit UI Component Event Glossary

Here is a list of events that are emitted from knit-auth component

Event IDDescriptionExample Payload [event.detail]
onNewSessionThis event is emitted when the Knit UI component loads. You can use it as a hook to call your backend to get the authSessionToken from this API: https://developers.getknit.dev/reference/auth-session-creation-api
onFinishUpon completion of the integration setup flow, an integrationDetails object is emitted through the onFinish event, one can access the integrationDetails using event.detail.integrationDetails{"integrationDetails":{"integrationId":"integration_id","appId":"hubspot","categoryId":"CRM","originOrgId":"org1","success":true}}
onDeactivateUpon deactivation of the integration, an integrationDetails object is emitted through the onDeactivate event, one can access the integrationDetails using event.detail.integrationDetails{"integrationDetails":{"integrationId":"integration_id","appId":"hubspot","categoryId":"CRM","originOrgId":"org1","isDeactivated":true}}
onKnitCloseUpon closing of the knit-auth component, onKnitClose event is emitted{"knitClosed":true}