Auth0 Home Blog Docs

Set the user_id during Pre Registration Hook



Is there any way to impact the user_id that is created by the default connect? If I make an API call I can supply user_id and it will set it to the value specified. However, within pre and post hooks I cannot seem to impact the value. Ultimately I need it in UUID format, not just the longid default format.


I was thinking, one option for this would be to use a custom database that points to another Auth0 database with API calls. That way I can augment the behavior how I need but not have to worry about storage. This seems pretty hacky to me though…