@tremendous/help
    Preparing search index...

    Function createDeviceDetection

    • Creates a device detection function that initializes FingerprintJS Pro with the given API key. The FingerprintJS agent is lazily loaded on first call.

      When no API key is provided (e.g. in test/development environments), returns a fake result to avoid hitting the FingerprintJS API.

      Parameters

      • apiKey: string | undefined

      Returns () => Promise<{ device: Device }>