import Morphik from 'morphik';
const client = new Morphik({
apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
});
const response = await client.ee.connectors.handleOAuthCallback('connector_type');
console.log(response);
Handles the OAuth 2.0 callback from the authentication provider.
Validates state, finalizes authentication, and stores credentials.
GET
/
ee
/
connectors
/
{connector_type}
/
oauth2callback
JavaScript
Copy
Ask AI
import Morphik from 'morphik';
const client = new Morphik({
apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
});
const response = await client.ee.connectors.handleOAuthCallback('connector_type');
console.log(response);