Provides client for usage with FingerprintJS Pro. Takes options as props.

See

FpjsSvelteOptions

Example

<script>
import { FpjsProvider } from '@fingerprintjs/fingerprintjs-pro-svelte'
import VisitorData from './VisitorData.svelte'

const options = {
loadOptions: {
apiKey: '<YOUR_API_KEY>'
},
};
</script>

<FpjsProvider {options}>
<VisitorData />
</FpjsProvider>

Hierarchy

  • SvelteComponent<FpjsProviderProps, FpjsProviderEvents, FpjsProviderSlots>
    • FpjsProvider

Constructors

  • Parameters

    • options: ComponentConstructorOptions<{
          options: FpjsClientOptions;
      }>

    Returns FpjsProvider

Properties

$$: any

PRIVATE API

Do not use, may change at any time

$$events_def: {
    [evt: string]: CustomEvent<any>;
}

For type checking capabilities only. Does not exist at runtime.

DO NOT USE!

Type declaration

  • [evt: string]: CustomEvent<any>
$$prop_def: {
    options: FpjsClientOptions;
}

For type checking capabilities only. Does not exist at runtime.

DO NOT USE!

Type declaration

  • options: FpjsClientOptions

    Required props for the component.

    Example

    {
    * loadOptions: {
    * apiKey: '<YOUR_API_KEY>'
    * },
    * }
$$set: any

PRIVATE API

Do not use, may change at any time

$$slot_def: {
    default: {};
}

For type checking capabilities only. Does not exist at runtime.

DO NOT USE!

Type declaration

  • default: {}

    Methods

    • Returns void

    • Returns void

    • Returns void

    • Type Parameters

      • K extends string

      Parameters

      • type: K
      • callback: undefined | null | ((e) => void)

      Returns (() => void)

        • (): void
        • Returns void

    • Parameters

      • props: Partial<{
            options: FpjsClientOptions;
        }>

      Returns void

    Generated using TypeDoc