Skip to content

feature-mcp-connect hooks

The components already use these hooks. Reach for them when you build your own UI on the same data. Open a hook for its options and what it returns.

Other hooks

useConnectFormThe binding for a login form while a client connects.
import { useConnectForm } from "@evolve-storefront/feature-mcp-connect/hooks";
function useConnectForm(
options: UseConnectFormOptions,
): ConnectFormBinding
OptionTypeDescription
signIn(values: { email: string; password: string; }) => Promise<TypedError[]>

Signs in for the client, and answers why the customer was refused.

resolveErrorResolveErrorCode

Words for an error code: useAuthErrorMessages from feature-auth.

Returns ConnectFormBinding