Hi,
I'm designing a skill that uses the DeviceAddressClient. I'm using
var contest = this.event.context.System.user.permissions.consentToken;
But for some reason I can't gather the consentToken, when ever I try I get a failure:
'TypeError: Cannot read property 'consentToken' of undefined'
Messing with my code a bit and using console.log I can see that my skill pulls up to
this.event.context.System.user
and gathers responses, but when I try to get this.event.context.System.user.permissions it throws as undefined.
Any ideas for what is causing this? I've been basing my skill of the offical GitHub example and cannot work this out.