skill-sample-node-device-address-api icon indicating copy to clipboard operation
skill-sample-node-device-address-api copied to clipboard

Suggestion: Change consentToken to apiAccessToken

Open Whobeu opened this issue 6 years ago • 0 comments

Per the developer documentation at https://developer.amazon.com/docs/custom-skills/device-address-api.html#get-the-api-access-token-and-device-id, consentToken is now deprecated and apiAccessToken should be used instead. Updating the index.js code to reflect this change would help new developers. Suggest changing the code to:

const accessToken = requestEnvelope.context.System.user.permissions
      && requestEnvelope.context.System.apiAccessToken;

if (!accessToken) {

Whobeu avatar Oct 29 '18 19:10 Whobeu