import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const response = await client.ee.connectors.finalizeAuth({
auth_response_data: {},
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: 'My API Key',
});
const response = await client.ee.connectors.finalizeAuth({
auth_response_data: {},
connector_type: 'connector_type',
});
console.log(response);{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Was this page helpful?