create-t3-turbo monorepo: How to access user session to packages/db?
I would like to access some props from user's session to prisma middleware
i.e. in below example: I would like to get contextLanguage from user's session (nextauth).
adding @acme/auth as a dependency to @acme/db package, may create circular dependency?
https://www.prisma.io/docs/concepts/components/prisma-client/middleware/session-data-middleware
Prisma
Middleware sample: session data (Reference)
How to use middleware to set the value taken from session state.
0 Replies