1 import queryPages from '@proton/shared/lib/api/helpers/queryPages';
2 import { queryLogs } from '@proton/shared/lib/api/logs';
3 import type { AuthLog } from '@proton/shared/lib/authlog';
4 import type { Api } from '@proton/shared/lib/interfaces';
6 export const getAllAuthenticationLogs = (api: Api) => {
9 return api<{ Logs: AuthLog[]; Total: number }>(
18 return pages.flatMap(({ Logs }) => Logs);