Package: react-wallet-kit

Defined in: react-wallet-kit/src/providers/client/Types.tsx:593

Overview

Handles the removal of an OAuth provider.
  • This function opens a modal with the RemoveOAuthProvider component, allowing the user to confirm and remove an OAuth provider (such as Google, Apple, or Facebook) from their account.
  • It supports specifying the provider ID to remove, as well as optional modal title and subtitle for custom UI messaging.
  • After successful removal, the user details state is refreshed to reflect the updated list of linked OAuth providers.
  • Optionally, a callback can be provided to handle successful removal, receiving the updated list of provider IDs.
  • Supports customizing the duration of the success page shown after removal.
  • Allows specifying the stamper to use for the removal (StamperType.Passkey, StamperType.ApiKey, or StamperType.Wallet) for granular authentication control.
  • Handles all error cases and throws a TurnkeyError with appropriate error codes.

Parameters

params
object
required

Response

A successful response returns the following fields:
returns
string[]
required
A promise that resolves to an array of provider IDs that were removed.