Skip to main content
@avokjs/react is a thin React layer over @avokjs/core. It provides lifecycle hooks and components; sending and signing go through the announced provider, not hooks. See The provider, not hooks.

Hooks

PairingCeremony includes phase, step, sas, error: string | null, canFinish, triggerScan(), retryCamera(), confirmSas(matches), finish(), and the DOM refs qrRef and videoRef.
usePairingCeremony’s error is a string | null. The mutation hooks’ error is an Error | null.

Components

Re-exports

createAvokClient, createOwnOriginConnection, createSharedOriginConnection, webStorage, operatorNameFromOrigin, and the catchable error classes. See Errors.