I would like to customize the
user_id on signup, more specifically I would like to use a BSON.ObjectId.
I’ve found a way to do this through the management API by simply passing a
user_id in the request body. However, this doesn’t seem to work for users that are created through the social media connections (via oauth).
Another way that I’ve found is to use the Pre User Registration hook, in which I could set the
response.user.id or as an alternative I could also set an additional id in the
user_metadata in this hook… however both ways don’t seem to work for the social media connections.
Is there a way to accomplish this that also works for the social connections?