Skip to content
Alchemy Logo

disconnect

function disconnect(config): Promise<void>;

Defined in: account-kit/core/src/actions/disconnect.ts:25

Disconnects the current signer, accounts, and clears the store.

import { disconnect, createConfig } from "@account-kit/core";
import { sepolia } from "@account-kit/infra";
 
const config = createConfig({
  chain: sepolia,
  apiKey: "your-api-key",
});
 
await disconnect(config);

ParameterTypeDescription

config

AlchemyAccountsConfig

The configuration containing the store to be cleared

Promise<void>

Was this page helpful?