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.
- Automatic account linking: automatically link accounts with the same email address
- User-initiated account linking: allow your users to link their accounts using an admin screen in your app
- Suggested account linking: identify accounts with the same email address and prompt the user in your app to link them
See the docs for details:
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.