🚑 (auth) Fix bad requests with getSession on server side
This commit is contained in:
@@ -3,7 +3,7 @@ import { inferAsyncReturnType } from '@trpc/server'
|
||||
import * as trpcNext from '@trpc/server/adapters/next'
|
||||
|
||||
export async function createContext(opts: trpcNext.CreateNextContextOptions) {
|
||||
const user = await getAuthenticatedUser(opts.req)
|
||||
const user = await getAuthenticatedUser(opts.req, opts.res)
|
||||
|
||||
return {
|
||||
user,
|
||||
|
||||
Reference in New Issue
Block a user