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.finalizeAuth({
auth_response_data: { foo: 'bar' },
connector_type: 'connector_type',
});
console.log(response);
Finalize the OAuth flow and exchange the code for a token.
POST
/
ee
/
connectors
/
finalize-auth
JavaScript
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.finalizeAuth({
auth_response_data: { foo: 'bar' },
connector_type: 'connector_type',
});
console.log(response);