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

    Function addAccount

    @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.

    • Add account to linked accounts list and set as active if first account.

      Parameters

      • store: Keyv

        Keyv storage instance

      • params: AccountKeyParams

        Account identification (service, accountId)

      Returns Promise<void>

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