I have a AWS Lambda function written in Node.js that I need reviewed, cleaned up and documented to a point where someone can understand what is going on quickly.
The code works but I am very far from a Java Script expert so looking for someone with good Java Script skills that can make this short Lambda function look great.
The code is attached. You will see that there are 3 asynchronous functions that called called.
The user must pass a "token" to the Lambda function. The lambda function gets the refresh token from dynamodb, calls a webfunction to get the new token, saves the new token in dynamo db and returns it to the user.
If they also passes "action" = "deleteToken" then the token is deleted from the database. This happens when the user logs out.
7 freelancers are bidding on average $36 for this job
Greetings! Please tell me more about this project. What exactly needs to be done? What are the completion criteria for this project? Best regards, -Alexandre Kharlamov