Store social connections in the custom database

That’s not a good way to achieve what I need. An API call can not be atomic and safe. Any chance to implement this on the Auth0 side by utilizing client metadata, for example?