Changing email while being connected

Hi,

I am using Auth0 with the wordpress plugin. It works perfectly !
However, I have an issue when a user changes its email.

I have a profile page where the user can enter a new email address, once the form is sent, Auth0 API is called and change the email address associated with the current user_id.

Everything goes well until I logout (from the previous email) and log in again with the new email.

Auth0 authenticates the use correctly but the Wordpress site keeps processing until timeout and never finishes the login process. Like if there was an issue during the login process.

I can avoid this issue if I do the whole procedure in private mode and after logging out, I close the window and start a new private session.

It seems that some cookie session data remains after logout and introduces login issues with the new email.

Any idea ?

1 Like