Files
EpicNext-Cms/src/lib/proxy-auth.ts
T
Simo cdf180ee3f
Local Build and Deploy / deploy (push) Successful in 1m2s
fix: isolate proxy session decoding
2026-07-12 13:39:25 +02:00

11 lines
342 B
TypeScript

import NextAuth from "next-auth";
// Proxy authentication must only decode the Auth.js session. Importing the
// full CMS auth configuration here would also run Prisma/settings callbacks.
export const { auth: proxyAuth } = NextAuth({
trustHost: true,
secret: process.env.AUTH_SECRET,
session: { strategy: "jwt" },
providers: [],
});