I created some functions with Serverless framework and now I have some API Gateway endpoints.
I created a static S3 JS page and I’m calling these endpoints and it’s working fine!
Now I want to add Cognito Authentication to these endpoints.
I already added Facebook login to the frontend and I’m using this login to authenticate on a Federated Pool on Cognito and it’s also working fine.
The missing piece I don’t find is what to do next to use this authentication to ask something on my serverless services.