For context, in our system, some users have 1 account that login via the classic email password for APP 1 which is resticted. We also have an APP 2 where very users has a different email password which is used to authenticate. Every users in APP 1 has an account in APP 2. When a user in APP 1 is created, we link both users, APP 1 being the primary account.
I’m trying to find a user account with the secondary (APP 2 ) account’s email and the api doesn’t match it… Is there another way to search for the secondary account ? The only possible way i can think of right now is to not link accounts and deal with dual user ids in our system which is not ideal, but possible…
Yes i’m using the built in account linking mechanism.
If i look at the linked user, the 2nd account’s email is in the profileData of the item in the indentities array. So the information is there, but the api/v2/users-by-email endpoint (via the node-auth0 package) doesn’t match that email.
If i dig a little, i think the node-auth0 package use the rest-facade package which seems to tell me to just write the query directly in the params object… Would be nice to update the doc with this information.