isotoma / react-cognito

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

Insufficient privilege error when logging in #22

Closed mgalindo closed 6 years ago

mgalindo commented 6 years ago

I am using you example code, when I try to login a user that is already verified I get the following error "Insufficient privilege".
I can create new users and change password but not log in.

egut commented 6 years ago

I got the same issue for me it was both these issues:

dibell commented 6 years ago

config.group = 'admins' in index.js on the example code requires the user to be in a group called 'admins'. I've updated the example code to remove this and added a comment to clarify.