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

    Function listAccountIds

    • List all account IDs for a service

      Iterates token keys and returns all accountIds that match the service. Encapsulates key format details for forward compatibility.

      Parameters

      • store: Keyv

        Keyv store to iterate

      • service: string

        Service name

      Returns Promise<string[]>

      Array of account IDs (e.g., email addresses)

      const accounts = await listAccountIds(store, 'gmail');
      // Returns: ['alice@gmail.com', 'bob@gmail.com']
      // Empty array if no accounts found
      const empty = await listAccountIds(store, 'unknown-service');
      // Returns: []