You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Auth0 API it not instantly synced to Auth0 data #515
Hello there!
First of all, thank you for all the work you're doing on Auth0.
I'm writing this issue regarding a weird problem I'm having in an app where I make heavy use of the Auth0 API/Management API.
In the app above, after an user signup successfully it is redirected here, and after the page is rendered I make a call to the Auth0 API which sometimes returns a 404.
The real issue though, is that making the same API call after some seconds returns a 200, meaning that the issue is timing related.
It basically boils down to a simple question: If an user sign-ups successfully through Auth0, should I be able to access to its informations instantly (by calling ${AUTH0_API_URL}/users?q=user_id="${userId}")?
Is the data we fetch with the Auth0 API synced with the real data on Auth0 server?
From my testing (and from the user who posted in the linked issue) the answer is no: sometimes the user informations do not get propagated instantly to the Auth API (and unfortunately as you may already imagine, this is not that easy to reproduce).
Activity
luisrudge commentedon Oct 5, 2017
Hi, this doesn't look like a bug in the SDK. Please reach out to our amazing support team at https://support.auth0.com so they can better assist you with your scenario.
luisrudge commentedon Oct 5, 2017
The search API might take a couple of seconds to update the indexes, but you should use the api to get an user by id directly: https://auth0.com/docs/api/management/v2#!/Users/get_users_by_id
In any case, the support team will put you in touch with the correct team.
mmazzarolo commentedon Oct 5, 2017
@luisrudge thank you for taking the time for pointing me to the
get_users_by_idlink, I missed it!