I'm having some problems with the Alexa account linking authorization.
These are the steps I followed:
- I got the credentials (client id, client secret...) from the Google Cloud Console
- Setup on the Alexa Developer Console, using 'Auth Code Grant' as authorization grant type
- Activated the skill on my Alexa application and successfully logged in with my Google account
- Now I got the access token in the request, in
handler_input.request_envelope.context.system.user.access_token
The problem is that the access token expires after one hour and Alexa does not manage the refreshment of the token.
What should I do to avoid having to ask my users to login every time after one hour? Should I use Implicit grant as authorization type? Should I get a refresh token somehow?
Additional info: it's a custom skill that connects to an AWS Lambda using Python3