How to add Twitter authentication to a serverless API

Link to chapter — https://serverless-stack.com/examples/how-to-add-twitter-authentication-to-a-serverless-api.html