#Prisma in middleware
3 messages · Page 1 of 1 (latest)
It's literally the way to do it on the edge, normal prisma isn't built for it
https://next-auth.js.org/configuration/nextjs#middleware
Caveats
Currently only supports session verification, as parts of the sign-in code need to run in a Node.js environment. In the future, we would like to make sure that NextAuth.js can fully run at the Edge
Only supports the "jwt" session strategy. We need to wait until databases at the Edge become mature enough to ensure a fast experience. (If you know of an Edge-compatible database, we would like if you proposed a new Adapter)