How to add JWT authorization with Cognito User Pool to a serverless API

Link to chapter — https://serverless-stack.com/examples/how-to-add-jwt-authorization-with-cognito-user-pool-to-a-serverless-api.html