• Check user password handler

    Parameters

    • userService: UserDataService

      injected service use to handle the user related operations

      • checkPassword
    • opts: {
          maxFailedLoginAttempts: number;
      }

      Options for check password

      • maxFailedLoginAttempts: number

        number of max failed login attempts

    • logger: Logger

      injected logger used to handle the logging

    • context: AdapterHandlerContext

      request context [headers, body, params, query]. Note:

      • body is required

    Returns Promise<adapter.AdapterHandlerResponse>

    200 Status OK

    • data: check result

    Description

    This handler will check user password by applying the following steps in sequence:

    1. Check user password (userService.checkPassword)

    2. Return check result

    Example: example response data

    {
    "id": "userId",
    "valid": true
    }

    or

    {
    "valid": false
    }

Generated using TypeDoc