Interface GiroIdentCallbacks

interface GiroIdentCallbacks {
    onAbort?: (() => void);
    onComplete?: ((processToken) => void);
    onError?: (() => void);
    onNavigate?: ((location) => void);
    onResolved?: ((params) => void);
}

Hierarchy (view full)

Properties

onAbort?: (() => void)

If the end-user aborts the account import step, the onAbort event will be triggered.

Type declaration

    • (): void
    • If the end-user aborts the account import step, the onAbort event will be triggered.

      Returns void

onComplete?: ((processToken) => void)

When the widget has finished executing, the onComplete event is triggered. This event indicates that the widget has completed successfully, not that the widget's check has returned positive results. If the results of the widget's check are to be provided, then they should be sent as the payload of a separate event.

Type declaration

    • (processToken): void
    • When the widget has finished executing, the onComplete event is triggered. This event indicates that the widget has completed successfully, not that the widget's check has returned positive results. If the results of the widget's check are to be provided, then they should be sent as the payload of a separate event.

      Parameters

      • processToken: string

      Returns void

onError?: (() => void)

The onError event is triggered when a technical error occurs, such as an inaccessible API server, an incorrect widget configuration, or any other unexpected error.

Type declaration

    • (): void
    • The onError event is triggered when a technical error occurs, such as an inaccessible API server, an incorrect widget configuration, or any other unexpected error.

      Returns void

onNavigate?: ((location) => void)

The onNavigate event is triggered when navigating to a different view. The event's payload is the route's path. For example, you can use this event to incorporate the widget's steps into your own stepper.

Type declaration

    • (location): void
    • The onNavigate event is triggered when navigating to a different view. The event's payload is the route's path. For example, you can use this event to incorporate the widget's steps into your own stepper.

      Parameters

      • location: string

      Returns void

onResolved?: ((params) => void)

The onResolved event is triggered after successful evaluation. The payload of this event is an object containing the results of the evaluation.

Type declaration

    • (params): void
    • The onResolved event is triggered after successful evaluation. The payload of this event is an object containing the results of the evaluation.

      Parameters

      • params: Pick<GiroIdentProperties, "firstName" | "lastName" | "companyName"> & {
            nameEquality?: boolean;
            nameEqualityScore?: number;
        }

      Returns void

Generated using TypeDoc