Im trying to get consentUrl but getting "Cannot read property 'authorizationUrl' of undefined".
Im using "xero-node": "^4.1.2"
const xero = new xero_node.XeroClient({
clientId: "clientId",
clientSecret: "clientSecret",
redirectUris: ["redirectUrl"],
scopes: "offline_access,openid".split(",")
});
then inside async function i'm calling this:
let consentUrl = await xero.buildConsentUrl();
and it gives error : Cannot read property 'authorizationUrl' of undefined.
Should I create url manually if this function is not supported. Need help thanks.