feature/refactor: smartfeeds to reduce the client complexity

This commit is contained in:
Andy Burke 2025-10-10 16:39:44 -07:00
parent 46090d944a
commit f6cd05beac
19 changed files with 782 additions and 800 deletions

View file

@ -64,8 +64,8 @@ export function api(api_config?: Record<string, any>): API_CLIENT {
cookies.push({
name: options.totp_token ?? 'totp',
value: await generateTotp(options.session.secret),
maxAge: 30,
expires: Date.now() + 30_000,
maxAge: 29,
expires: Date.now() + 29_000,
path: '/'
});
@ -80,7 +80,8 @@ export function api(api_config?: Record<string, any>): API_CLIENT {
method: options?.method ?? 'GET',
credentials: options?.credentials ?? 'include',
redirect: options?.redirect ?? 'follow',
headers
headers,
signal: options?.signal
};
const response_transform = transform ?? DEFAULT_TRANSFORM;