Private userThe createUserDto parameter is an object that contains the
data needed to create a new user. It likely includes properties such as name, email,
password, etc.
a Promise that resolves to a User object.
The function finds a user by their authentication ID and throws an error if the user is not found.
The authId parameter is a string that represents the authentication ID
of a user which is gotten from auth provider . It is used to find a user in the database based on their authentication ID.
the user object that is found in the database based on the provided authId.
Generated using TypeDoc
The function creates a new user by inserting the provided user data into the user repository, and returns the created user.