question

newuser-b77a6edd-75fd-435a-8dde-c0425b67ad5b avatar image

How do I get Alexa to refresh a token when the token expires?

I configured my Alexa skills to connect to Microsoft graph but I noticed after some minutes of account linking or inactivity then Alexa will stop sending the token, some research says that the token has expired. Below is the response I usually get back which is supposed to contain the access token:


{
"version": "1.0",
"context": {
"System": {
"user": {
"userId": "Sample user ID",
// AccessToken used to be here
},
"apiEndpoint": "https://api.eu.amazonalexa.com",
"apiAccessToken": "Sample API Access Token"
},
},
}



How do I get Alexa to refresh the token when it expires because currently, I am very sure it is not doing that.

lambdaalexa skills
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

Pan@Amazon avatar image
Pan@Amazon answered

This question has already been asked, so can we consolidate the questions here: https://forums.developer.amazon.com/questions/222737/dealing-with-refresh-tokens-that-expire.html?



10 |5000

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