Files
karakeep-mirror/apps/workers/trpc.ts
Mohamed Bassem 9695bba2e9 feat: Generate RSS feeds from lists (#1507)
* refactor: Move bookmark utils from shared-react to shared

* Expose RSS feeds for lists

* Add e2e tests

* Slightly improve the look of the share dialog

* allow specifying a limit in the rss endpoint
2025-05-31 18:46:04 +01:00

15 lines
545 B
TypeScript

import { createCallerFactory } from "@karakeep/trpc";
import { buildImpersonatingAuthedContext as buildAuthedContext } from "@karakeep/trpc/lib/impersonate";
import { appRouter } from "@karakeep/trpc/routers/_app";
export const buildImpersonatingAuthedContext = buildAuthedContext;
/**
* This is only safe to use in the context of a worker.
*/
export async function buildImpersonatingTRPCClient(userId: string) {
const createCaller = createCallerFactory(appRouter);
return createCaller(await buildImpersonatingAuthedContext(userId));
}