CDP SDK TypeScript - v1.38.3
    Preparing search index...

    Function withAuth

    • Axios interceptor for adding the JWT to the Authorization header.

      Parameters

      • axiosClient: AxiosInstance

        The Axios client instance to add the interceptor to

      • options: AuthInterceptorOptions

        Options for the request including API keys and debug flag

      Returns AxiosInstance

      The modified request configuration with the Authorization header added