@fingerprint/svelte
    Preparing search index...

    Interface Agent

    Agent object that can get visitor identifier

    interface Agent {
        collect(options?: Readonly<GetOptions>): Promise<string>;
        get(options?: Readonly<GetOptions>): Promise<GetResult>;
    }
    Index
    • Collects on demand fingerprint data.

      Parameters

      Returns Promise<string>

    • Gets the visitor identifier. See the ERROR_... constants for expected error messages. When an error is emitted by the backend, it gets a event_id field, same as in successful result.

      Parameters

      Returns Promise<GetResult>