Refresh the token in an AWS Lambda function #1379
Labels
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: question
Request for information or clarification. Not an issue.
The library works perfectly on my machine but when it's deployed in a Lambda function, the token doesn't seem to automatically update:
My guess is that it doesn't have time to update in the database because this is handled in a callback.
Is there a way to check if expiry_date is passed and update the token with a Promise-based function?
Some examples of errors I get:
The text was updated successfully, but these errors were encountered: