Auth0 Node.js SDK - v5.2.0
    Preparing search index...

    Class CustomPager<TItem, TRequest, TResponse>Template

    A custom pager for paginated API responses where the pagination logic must be implemented by the SDK author.

    SDK authors provide a parser callback to extract items and determine pagination state from responses.

    TItem The type of the items in the page. TRequest The type of the request object. TResponse The type of the API response.

    Type Parameters

    • TItem
    • TRequest
    • TResponse

    Implements

    Index

    Methods

    • Returns boolean

      whether there is a next page to load

    • Returns boolean

      whether there is a previous page to load

    • Returns AsyncIterator<TItem, void, unknown>

    Properties

    data: TItem[]

    The items from the current page

    rawResponse: RawResponse

    The raw HTTP response

    response: TResponse

    The parsed response object