UseWebOTPOptions
Properties
Section titled “Properties”enabled?
Section titled “enabled?”optional enabled?: boolean;When false (the default path for an unset prop), the hook is inert.
onReceive
Section titled “onReceive”onReceive: (code) => void;Called with the received code, already the raw digits from the SMS.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
code | string |
Returns
Section titled “Returns”void
signal?
Section titled “signal?”optional signal?: AbortSignal;Optional external signal; the request also aborts on unmount.