Auth service Implementation of the IAuthService interface

Implements

Constructors

Methods

  • Registers a new user

    Parameters

    • email: string

      The email of the user

    • password: string

      The password of the user

    Returns Promise<Document<unknown, any, any>>

    The created user

    If the user already exists