We have an Angular app. using v1.4.1 of auth0-angular (i’ll be upgrading this week to the latest). We can create a user, and log in as a user just fine. There is however no way to edit user profile attributes like name, nickname, given_name, family_name or even email address.
I created a simple API endpoint to securely send requests to update this information and pass them off to the Auth0 management API. If I want to update given_name or family_name it works fine. However, the problem comes when I try to update an email address.
Example. I’m logged in, and I update the given_name to “John”. I refresh the page, and the session tokens that the auth0-angular library uses recognize me as being authenticated the page loads and the name “John” shows in our NGRX state store. I change it again to “James” and do the same thing, and the change is again present in NGRX. Working as expected.
However if I try to pass an email address to the management api on a user update and then refresh the page to see if the change took, the token seems to now be invalid, and I am forced to log in again. Is there no way to change the email address without expiring existing tokens and breaking the user experience?