FoxoChat.js Packages
    Preparing search index...

    Interface Options

    Options to be passed when creating the API client instance.

    interface Options {
        rest: {
            authPrefix?: string;
            baseURL: string;
            enforceAuth?: boolean;
            request?: (
                url: RequestInfo | URL,
                init: RequestInit,
            ) => Promise<ResponseLike>;
        };
    }
    Index

    Properties

    Properties

    rest: {
        authPrefix?: string;
        baseURL: string;
        enforceAuth?: boolean;
        request?: (
            url: RequestInfo | URL,
            init: RequestInit,
        ) => Promise<ResponseLike>;
    }

    Type declaration

    • OptionalauthPrefix?: string

      The authorization prefix to use for requests.

    • baseURL: string

      The base API url.

    • OptionalenforceAuth?: boolean

      Enforces authorization token requirement in auth required endpoints.

    • Optionalrequest?: (url: RequestInfo | URL, init: RequestInit) => Promise<ResponseLike>