Search code examples
amazon-web-servicesamazon-cognitoamazon-iamaws-amplify

AWS Amplify - Cognito, how to know that my user has right to do some actions?


I have a React App and the backend has been built with AWS Amplify, it works perfect with CRUD operations.

But I would like to know how to select permissions for pay user or free user.

For example, my app will have 3 months free, but after that time, all the users will have to pay 12$, the user that dont pay, just will be able to perform read actions after the 3th month.


Solution

  • I never done that, but my approach would be the following: