question

newuser-e23d935b-cb9d-467d-a1f7-2544d029161b avatar image

accessToken changes in linked account?

My app is no longer working and it appears to be from changes in the handlerInput response JSON.

I used to be able to grab the accessToken via:

handlerInput.requestEnvelope.session.user.accessToken;

But now it does not seem to be there. It appears that instead there is a block called "permissions" with a consentToken in place? That is not the same thing for me though. Is there any documentation on these breaking changes?

alexa skills kitaccount linking
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Jenn@amazon avatar image
Jenn@amazon answered

I just tested on one of my skills and the accessToken is still appears under the session.user object.

Is it possible the account is no longer linked? If the account isn't linked, no value is included in the Request.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.