Skip to content

Cannot update email #3981

Open
Open
@antkont

Description

@antkont

Updating email does not work anymore:
Amplify.Auth.update(userAttribute: AuthUserAttribute(.email, value: email))

All I get is an error:
AuthError: user.email: Attribute cannot be updated.

Recovery suggestion: Make sure that the parameters passed are valid
Caused by: invalidParameter

It used to work, I have not changed cognito configurations in the cloud, email is verified and confirmed.

Only thing that has changed in the client end is that I started using OTP for login instead of SRP usernam/password.

Any suggestions what could be wrong? Does the cognito allow changing email anymore?

Changing some other attribute worked...

Metadata

Metadata

Assignees

No one assigned

    Labels

    authIssues related to the Auth categorybugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions