alexa and refresh token questions /

Published at 2018-11-02 21:09:19

Home / Categories / Account linking / alexa and refresh token questions
My alexa skill is using authorization grant code option for account linking. My oauth2 server has set the refresh token to expire in 30 days,and the access token expires in 10 mins.
I've the following 2 questions regarding access token and refresh token: 1) When does Amazon requests a new access token? Does it request a new access token using the refresh token whenever the Alexa skill is invoked? Let's say I invoke the skill, cease, or the invoke the still immediately after. Will Amazon use the refresh token 2 times in this scenario,at skill invocation? 2) If my Alexa session is > 10 mins ( i.e. longer than the expiry time for my access token), will Amazon handle this scenario seamlessly and use refresh token to find new access token in the background during the same Alexa session? The reason why I contain the above questions is that I can't find any detailed online docs approximately how Amazon uses the refresh token, and occasionally my lambda function is getting invalid_token error or null/undefined token error,and i'm debugging the root cause.

Source: amazon.com

Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0