11 lines
342 B
TypeScript
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: [],
|
|
});
|