How I configure authorization and authenication of users using AWS Cogntio Identity Pool, also leveraging both Auth and Unauth role in our react app. For IDP (Identity Provider) we use, Twitter Google Demo: you can checkout BookStore. Architecture Flow (BookStore)