@subsidia-ch/sdk - v1.3.5
    Preparing search index...

    Enhanced fetch service with authentication and error handling

    Index

    Constructors

    Properties

    authController?: AuthController

    Methods

    • GET request

      Parameters

      Returns Promise<Response>

    post

    • post(
          __namedParameters: {
              options?: RequestOptions;
              path: string;
              service: API_SERVICE;
          },
      ): Promise<Response>

      POST request

      Parameters

      Returns Promise<Response>

    • Make a request with authentication if needed

      Parameters

      Returns Promise<Response>

    • Set auth controller after initialization (Resolves circular dependency between auth and fetch)

      Parameters

      Returns void