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

    Function setActiveAccount

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

    • Set active account ID for a service. Pass null as accountId to deactivate (clear active account).

      Key: {service}:active

      Parameters

      • store: Keyv

        Keyv storage instance

      • params: AccountKeyParams | ServiceKeyParams & { accountId: null }

        Account identification (service, accountId). Pass accountId: null to deactivate.

      Returns Promise<void>