Hello Team,
We are using Auth0 passwordless SMS as our primary authentication factor. The auth0 forms is being used to create passwordless email account only if user is registering for the first time. Once it is created, I link email account with primary sms account using Link API in flows.
For the same forms, I have one step wherein, I check whether entered email_id by user is already present or not using below API endpoint:
https://dev-login.xx.com/api/v2/users?q=identities.profileData.email:“{{fields.get_email}}” OR email:“{{fields.get_email}}”
Everything works fine. One day I observed the reindexing issue on my production tenant and above endpoint was not providing latest information.
I was told by Auth0 team that this endpoint is eventually consistent but there is no other endpoint which will serve my need to check whether the user email account is present or not.
I have verified /user_by_email endpoint but it only responds if I have passwordless email primary account not SMS.
How can I solve this to be production safe?
Thanks