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);{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Finalize the OAuth flow and exchange the code for a token.
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);{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Was this page helpful?