I am implementing an app which user can log in and create profile page. Im using Auth0 React front end to do authentication. After user successfully signs up, i want to save user_id into my database. I look through the documentation and see there is post user registration hook which is potentially useful to trigger a request to my server and save user_id. But i wonder if there is failure either on Auth0 or on my side, then user is created but no user_id saved on my side.
Is there any suggestion how to approach this problem?