Skip to main content
Use this method to clear the customer’s MoonPay connection in the current browser when they sign out of your app. It runs the reset frame in a hidden iframe 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.
Reset the connection

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>

ResetConnectionError

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