session
1 trace
- Auth.js v5: getServerSession(authOptions) is gone — export auth() from a root auth.ts and call await auth()Code written for NextAuth v4 (import { getServerSession } from "next-auth/next", getServerSession(authOptions), getToken({ req }) from next-auth/jwt, export { default } from "next-auth/middleware") does not fit a…