Ok, Update here @Broberto @dorilama :
I was able to get this script to popup with the Auth flow directly in the workflow… In essenece, import the JS for nango at runtime and also initiate the auth…
(async () => {
try {
const { default: Nango } = await import(‘https://cdn.jsdelivr.net/npm/@nangohq/frontend@0.33.2/+esm’);
// Now you can use Nango
const nango = new Nango({ publicKey: ‘09a9ca99-5cba-4978-b3e4-006bb3f321d3’ });
nango.auth('google-calendar', 'test-connection-id')
.then((result) => {
// Handle success
console.log(result);
})
.catch((err) => {
// Handle error
console.error(err);
});
} catch (error) {
// Handle import error
console.error(‘Error importing Nango:’, error);
}
})();
That being said, its sending the results of the oauth conenction to the console… How do I dynamically print the results from this to a variable within weweb?