export function getApiHeaders( includeAuth: boolean = true ): Record { const headers: Record = {}; if (includeAuth) { const authSession = useAuthSession().value; if (authSession != null) { headers['authorization'] = `${authSession.type} ${authSession.id}`; } } return headers; }