passthrough authorization header to trpc user middleware

This commit is contained in:
vchikalkin 2024-05-21 19:20:41 +03:00
parent c18875f369
commit f63a6ac96b

View File

@ -15,7 +15,7 @@ export const userMiddleware = t.middleware(async ({ ctx, next }) => {
});
}
const apolloClient = initializeApollo();
const apolloClient = initializeApollo(null, ctx.headers);
const {
data: { systemusers },