Constructors

Methods

Constructors

Methods

  • Handles user authentication

    Parameters

    • body: LoginDto

      userId - the id of user

    • res: Response

      put refresh_token in cookie if authentication is successfully

    Returns Promise<Response>

    An access_token if authentication is successfully