@project-niffler/kikai-client
    Preparing search index...

    Interface ClientOptions

    Configuration for creating a KikaiClient instance.

    Provide either getToken (for browser apps with Supabase auth) or apiKey (for server-side scripts and integrations). If both are provided, getToken takes precedence.

    interface ClientOptions {
        apiKey?: string;
        baseUrl: string;
        getToken?: () => Promise<string | null>;
    }
    Index

    Properties

    apiKey?: string

    Static API key sent as X-Kikai-Key header. Use this for server-side scripts, cron jobs, or integrations that don't use Supabase auth.

    baseUrl: string

    Base URL of the kikai instance (e.g. "https://kikai.example.com").

    getToken?: () => Promise<string | null>

    Async function that returns a Bearer token (typically a Supabase JWT). Called on every request — return null to make unauthenticated requests.