interface FpjsClientOptions {
    __dangerouslyDisableCacheTimeLimitAndAcceptLowAccuracy?: boolean;
    cache?: ICache;
    cacheLocation?: CacheLocation;
    cachePrefix?: string;
    cacheTimeInSeconds?: number;
    loadOptions: FingerprintJSPro.LoadOptions;
}

Properties

__dangerouslyDisableCacheTimeLimitAndAcceptLowAccuracy?: boolean

If set to true, allows cacheTimeInSeconds to exceed 86_400 (24h). A warning will be logged instead of throwing an error. WARNING: Caching data for longer than 24 hours will negatively affect identification accuracy and is strongly discouraged.

cache?: ICache

Custom cache implementation. Takes precedence over the cacheLocation property.

cacheLocation?: CacheLocation

Defines which built-in cache mechanism the client should use.

cachePrefix?: string

Custom prefix for localStorage and sessionStorage cache keys. Will be ignored if cache is provided.

cacheTimeInSeconds?: number

Duration in seconds for which data is stored in cache. Cannot exceed 86_400 (24h) because caching data for longer than 24 hours can negatively affect identification accuracy.

Options for the FingerprintJS JS Agent load() method.