@mcp-z/oauth
    Preparing search index...

    Function removeAccount

    @mcp-z/oauth - Multi-account OAuth orchestration and secure token storage for MCP servers

    Provides account management functions, account tools generation, and secure logging utilities. Designed to work with any storage backend (file, Redis, DuckDB) via Keyv interface.

    • Remove account: delete token, metadata, update linked list, and active account.

      Parameters

      • store: Keyv

        Keyv storage instance

      • params: AccountKeyParams

        Account identification (service, accountId)

      Returns Promise<void>

      await removeAccount(tokenStore, {
      service: 'gmail',
      accountId: 'alice@gmail.com'
      });