We are trying to implement a legacy database as well as social connections. We have a rule which is merging users (copied from: https://auth0.com/rules/link-users-by-email-with-metadata). The initial login to either the social connection or the legacy database works. However, when a user tries to login from a second connection, it successfully merges the user’s identities but the login fails due to “The user does not exist.”. After the merge is successful, logins work from either connection. Any idea where the error message may be coming from?
-We are using auth0-js (https://cdn.auth0.com/js/auth0/9.11/auth0.min.js)