• Line Login Validator

    Parameters

    • opts: {
          authorizedRedirectUrls: string[];
      }

      options for line login validator

      • authorizedRedirectUrls: string[]

        whitelist of redirect urls

    Returns Predicate

    200 Status OK

    Description

    This validator will validate line login by applying the following steps in sequence:

    1. Check if query is empty

    2. Check if query.redirectUrl is string

    3. Check if query.fp is string

    4. Check if query.typeId is string

    5. Check if query.typeId is one of SUPPORTED_TYPE_IDS

    6. Return 200 Status OK

    Throws

    400 NBError Bad Request

    • query must be present
    • redirectUrl must be string
    • fp must be string
    • typeId must be string
    • typeId must be one of SUPPORTED_TYPE_IDS

    Throws

    401 NBError Unauthorized

    • redirect url is not authorized.

Generated using TypeDoc