Files
EpicNext-Cms/src/lib/proxy-auth.ts
T
SimoandCursor 3bd712e744
CI / check (push) Failing after 9s
CI / release (push) Skipped
CI / deploy (push) Skipped
fix(admin): polish tickets, photos purge note, drizzle contracts
Add queue banners/counts on ticket detail pages, document local-only photo purge, and harden Drizzle Kit smoke contracts after Prisma removal.

Co-authored-by: Cursor <[email protected]>
2026-08-01 15:07:54 +02:00

12 lines
355 B
TypeScript

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