mirror of
https://github.com/karakeep-app/karakeep.git
synced 2026-02-28 18:25:55 +01:00
* 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
15 lines
545 B
TypeScript
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));
|
|
}
|