How do I unify users based on email address?

Sometimes users login with Google Login, sometimes with username/pass. My application identifies users by their email address. Is there a way to get Auth0 to do the same?

Yes, there is a predefined rule for that, which you find under:

Dashboard > Rules > Create Rule > Link Accounts with Same Email Address while Merging Metadata

This would automatically merge users with the same email address, if the email address (of the username/pass connection) has been verified by the user. This would be the automatic linking.

There are also ways to let the user choose by himself whether he wants to link the two accounts.

See the docs for details:

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.