I am using Auth0 as the authentication provider for my app, and now I want to support the feature that allows users to change their login email.
My application currently supports two authentication schema: Auth0 Username+password and google SSO.
For updating the email when a user is using Auth0 Username+password, the path I need to take is quite clear . I can see the API to update the user’s email Auth0 Management API v2 and then trigger a verification email to be sent.
The problematic part is if the user who wants to switch to another email sign up using Google SSO.
From what I understand, it is not possible to use the Management API for this. So the question now is, how can changing of login email be implemented when authentication scheme used is SSO?
The account is not made using only the Google email address, but the whole Google account therefore you can’t change the email, you would need to change the entire account. What I would suggest would be linking the old and new Google account into a single Auth0 account, and deleting the old one as an identity.
If you have any other question for us feel free to reach out.