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.
Keyv store to iterate
Service name
Array of account IDs (e.g., email addresses)
const accounts = await listAccountIds(store, 'gmail');// Returns: ['alice@gmail.com', 'bob@gmail.com'] Copy
const accounts = await listAccountIds(store, 'gmail');// Returns: ['alice@gmail.com', 'bob@gmail.com']
// Empty array if no accounts foundconst empty = await listAccountIds(store, 'unknown-service');// Returns: [] Copy
// Empty array if no accounts foundconst empty = await listAccountIds(store, 'unknown-service');// Returns: []
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.