First of all, I am not sure if I am using Promise correctly but I am requesting a promise and storing it in a variable called tokenPromise. The resolved promise value (access token) has to be sent along with every request. Therefore, I wrapped around all of my requests with IIFE and resolved tokenPromise inside that wrapper, saved it in a variable called credentials and passed that value into every request.
Now, I was able to call simple non-asynchronous calls using lamba but I am not sure how I would handle a case described above. Any guidance would be appreciated! Thank you!