1. Users go to my website and create an account (cognito used in the backend, token expiration set to 3650 days, "Enable refresh token based authentication" is checked)
2. Users enable the skill.
3. Skill prompts user to link acccounts.
4. User links accounts.
5. 30 days later, the account link expires and the user has to do it all over again.
The documentation here:
"In this grant type, the authorization server provides an authorization code (
code) after the user authenticates with the service. Alexa then uses this
code to request an access token / refresh token pair from the authorization server. Alexa can then use the refresh token to request a new access token after the old access token expires."
YES BUT HOW?????? That last sentence is so incredibly vague. Does Alexa service do it automatically? Do I have to accomplish it in the code? If so, how? Where is the documentation for this?
I'm very very frustrated and desperate to get this working because I can't launch my skill until it works. Every 30 days I have to spend time figuring out and trying something new only to have it fail 30 days later.
p.s. skill id: amzn1.ask.skill.c6c3d2c9-f26b-4de2-9dd3-d73b76adcf6c