Hierarchy

  • UsersService

Constructors

Properties

Methods

Constructors

Properties

userRepository: Repository<User>

Methods

  • The function creates a new user by inserting the provided user data into the user repository, and returns the created user.

    Parameters

    • createUserDto: CreateUser

      The 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.

    Returns Promise<User>

    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.

    Parameters

    • authId: string

      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.

    Returns Promise<User>

    the user object that is found in the database based on the provided authId.

    See

    User

Generated using TypeDoc