marcy-terui / serverless-alexa-skills

Manage your Alexa Skills with Serverless Framework
https://www.npmjs.com/package/serverless-alexa-skills
MIT License
71 stars 13 forks source link

Auth token deleted by sls package/deploy #1

Closed evaneaston closed 6 years ago

evaneaston commented 6 years ago

Once you run sls alexa auth it puts alexa-skills-token.json into the .serverless directory. Then if you have a lambda and try to deploy it, the aws provider code runs the aws:common:cleanupTempDir hook which removes the .serverless directory and alexa-skills-token.json along with it.

To facilitate development, it would be nice to store the token in a different location so it survives lambda (re)deploys.

marcy-terui commented 6 years ago

Thank you for your suggestion.

To facilitate development, it would be nice to store the token in a different location so it survives lambda (re)deploys.

I think so too. I would like to think about a location to save the tokens. Do you have any ideas? @Evaneaston

marcy-terui commented 6 years ago

Fixed by #2

evaneaston commented 6 years ago

I don't have any suggestions. Putting it in a dot file like you did seems fine. If you ended up needing to manage more files a new dot directory would make sense.