import MindsDB from 'mindsdb-js-sdk';
// const MindsDB = require("mindsdb-js-sdk").default; // alternative for CommonJS syntax
import axios from 'axios';
// Use 'host' option in MindsDB.connect to specify base URL override
const customAxios = axios.create({
timeout: 1000,
});
try {
await MindsDB.connect({
user: mindsdbuser@gmail.com,
password: mypassword,
httpClient: customAxios
});
console.log('connected');
} catch(error) {
// Failed to authenticate
console.log(error);
}