We have implemented the JavaScript SDK-based code for Cognito and executed it from CodePen. We can use the code with any JavaScript application, or a framework such as Angular. We implemented only one login flow. You may follow this recipe and the recipes in Chapter 4, Application Security with Amazon Cognito, and do the same for all the other flows discussed.