Skip to main content

hooks/useOpenWidget

Hook

useOpenWidget()

useOpenWidget(loginParams?): AsyncMutationState\<() => Promise\<boolean>, "openWidget">

A hook that returns a function that opens the ComPilot ID widget.

Parameters

loginParams?: LoginParams

The login parameters to use when opening the widget.

Returns

AsyncMutationState\<() => Promise\<boolean>, "openWidget">

The async mutation state of the widget opening.