Files
NextChair/legacy-nextjs/src/auth.config.ts
T
Stefan Lazic 2ef3654841
CI / ci (push) Canceled after 0s
PHP Rebuild
Initial PHP rebuild of the app
2026-09-05 08:21:33 +01:00

18 lines
633 B
TypeScript

import type { NextAuthConfig } from "next-auth";
/**
* The subset of NextAuth config that doesn't touch the database — no
* adapter, no Credentials `authorize()` (which needs Prisma + bcrypt).
* `proxy.ts` builds its own lightweight `NextAuth(authConfig)` instance
* from this alone, so checking "is there a valid session" on every
* request doesn't spin up a Postgres connection pool just to do it. The
* full config in `auth.ts` (adapter, real providers) extends this one.
*/
export const authConfig = {
pages: {
signIn: "/sign-in",
},
providers: [],
session: { strategy: "jwt" },
} satisfies NextAuthConfig;