Function trackCookieInterceptor

  • A custom interceptor for Connect's transport layer to handle session cookies. This interceptor is crucial for non-browser clients that interact with the Valorem Trade API, as these clients need to manage session cookies manually.

    The interceptor does two main things:

    1. Attaches the stored session cookie to outgoing requests.
    2. Updates the stored session cookie based on the 'set-cookie' header from responses.

    Parameters

    • next: AnyFn

      The next function in the interceptor chain.

    Returns AnyFn

    A function that takes a request and returns a processed response.

Generated using TypeDoc