My front end application is in react JS. And my APIs built using serverless framework are authorized using AWS cognito. My question is which is better option?
- Use aws-amplify in react JS and communicate with cognito directly.
- Have a backend serivice in node JS which will actully communicate with cognito.
Better option and why?