isotoma / react-cognito

Library for integrating Facebook React and Amazon Cognito
Apache License 2.0
116 stars 48 forks source link

How can i attach Group using react-cognito #33

Open roshan605 opened 6 years ago

roshan605 commented 6 years ago

Hi ,

I was unable to attach a role to user.

I used the below code

let store = createStore(reducers, window.REDUX_DEVTOOLS_EXTENSION && window.REDUX_DEVTOOLS_EXTENSION());

config.group = 'Admin'; // Uncomment this to require users to be in a group 'admins' setupCognito(store, config);

Please help

user-not-attached-group

leason commented 6 years ago

I haven't used that feature yet, but it looks like you need to set config.group to "testGroup" since that's the name of your group.