<MoonPayConnectionReset> is a headless component (renders nothing visible)
that clears the customer’s MoonPay connection for this partner. It is the
declarative alternative to
client.resetConnection().
Mount this component after clearing your own local auth state to signal to
MoonPay that the customer has signed out. Unmount it after you receive the
"complete" event (or on error). The reset completes or times out within 5
seconds.
SignOutScreen.tsx
Props
| Prop | Type | Required | Description |
|---|---|---|---|
onEvent | (event: ConnectionResetEvent) => void | Callback for reset lifecycle events. See ConnectionResetEvent. |
style prop.
ConnectionResetEvent
| kind | Payload | When you receive it |
|---|---|---|
"complete" | — | The connection was successfully reset. |
"error" | { message: string } | The reset failed or timed out. Unmount and continue. |