> ## Documentation Index
> Fetch the complete documentation index at: https://dev.moonpay.com/llms.txt
> Use this file to discover all available pages before exploring further.

# client.resetConnection()

> Clear the customer's MoonPay connection for this partner.

Use this method to clear the customer's MoonPay connection on this device when they sign out of your app. It runs the [reset frame](/platform/frames/reset) in a hidden WebView and resolves once the reset completes — or after a 5-second timeout, whichever happens first.

`resetConnection()` always resolves with `ok` set to `true`. The method intentionally does not surface errors — a failed reset should never block your sign-out flow.

```tsx Reset the connection focus={5-13} theme={null}
import { useMoonPay } from "@moonpay/platform-sdk-react-native";

export function SignOutButton() {
  const { client } = useMoonPay();

  const handleSignOut = async () => {
    // Clear your own local auth state first, then call resetConnection.
    await client.resetConnection();
  };

  // ...
}
```

***

## Parameters

`client.resetConnection()` takes no parameters.

## Result

`client.resetConnection()` returns a `Result<void, ResetConnectionError>`. It always resolves with `ok: true` — even if the underlying frame fails to load or times out — so reset failures never block sign-out.

### Result envelope

`Result<void, ResetConnectionError>`

| Field   | Type                                            | Required | Description                                      |
| ------- | ----------------------------------------------- | -------- | ------------------------------------------------ |
| `ok`    | `boolean`                                       | ✅        | Always `true` for this method.                   |
| `value` | `undefined`                                     |          | Present when `ok` is `true`. Always `undefined`. |
| `error` | [`ResetConnectionError`](#resetconnectionerror) |          | Reserved for future use. Not currently emitted.  |

### `ResetConnectionError`

Reserved for future use. The current SDK never surfaces a reset error — failures are silently ignored so sign-out can always proceed.

| Field     | Type     | Required | Description                                      |
| --------- | -------- | -------- | ------------------------------------------------ |
| `message` | `string` | ✅        | A developer-friendly description of the failure. |
