Trying to find the Signature
and SignatureCertChainUrl
headers within Amazon's POST request to renew the access token using the refresh token. I deliberately set the access token to expire in 3600 seconds:
var res = {
"access_token": access_token,
"refresh_token": refresh_token,
"expires_in": 3600,
"token_type": "bearer",
"state": state,
"scope": myScope
}
then made a query to Alexa after the access token was supposed to expire. However, Amazon made no request to refresh the token as it should have done (to quote the docs, "Alexa also calls [the access] URI with the refresh token to get a new access token when the previous token expires").
How can I test my skill's response to getting a new access token with the refresh token?