Skip to content
This repository has been archived by the owner on Apr 1, 2019. It is now read-only.

How can i attach Group using react-cognito #33

Open
roshan605 opened this issue Oct 16, 2017 · 1 comment
Open

How can i attach Group using react-cognito #33

roshan605 opened this issue Oct 16, 2017 · 1 comment

Comments

@roshan605
Copy link

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
Copy link

leason commented Dec 21, 2017

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants