function testfyers() {
fyers.setAppId('Yxxxxxxxxxxx-100')
fyers.setRedirectUrl('https://')
fyers.generateAuthCode().then(
function(result) {
console.log(result)
setClickLink(result)
},
function(error) { console.log(error)
}
)
}
while the URL gets printed on the console, the variable ‘result’ shows up as ‘undefined’
Can someone help me