Skip to content

Login with google for the second time : email Attribute cannot be updated #3526

@uchar

Description

@uchar

Describe the bug
I have the same problem as this #issue. If you make a user pool with required email field then the second google login attempt fails.
changing required fields after creating UserPool is not possible and deleting the UserPool and making a new one doesn't look like a good solution to me because by doing it I will lose all my user's data!

To Reproduce

  1. Make a new UserPool with email attribute as required field
  2. Enable Google federation in UserPool
  3. Try to login for the second time using hosted ui
  4. It should give you this error: email Attribute cannot be updated.

Expected behavior
When we use same email address it shouldn't update email attribute!

Metadata

Metadata

Assignees

Labels

AuthRelated to Auth components/categoryCognitoRelated to cognito issuesdocumentationRelated to documentation feature requestspending-maintainer-responseIssue is pending a response from the Amplify team.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions