Problem Statement:
If a user forgets the email(s) they registered with, how can we use their mobile numbers to find their user id and email address?
Solution:
-
Save the phone number in the user.app_metadata during MFA enrollment. This article has the details.
-
Make a request to the GET /api/v2/users endpoint with the below query to get the email and user details.
q: app_metadata.phoneNumber: "+19999999999"