AnomalyInnovations / serverless-stack-demo-client

Source for the demo app client in the Serverless Stack Guide
https://demo2.serverless-stack.com
MIT License
635 stars 204 forks source link

How to use cognito groups #27

Closed pig800509 closed 5 years ago

pig800509 commented 6 years ago

I want to create admin and user permissions to get different menu by using cognito groups(Admin, User). how to determine which current user's identity is admin or user ? how to add a user into groups after signup?

jayair commented 6 years ago

@pig800509 Here is some info on how to get to the group info in the JS SDK - https://github.com/aws/amazon-cognito-identity-js/issues/286

pig800509 commented 5 years ago

@jayair , thanks