added neon auth

This commit is contained in:
2026-05-16 17:32:23 +02:00
parent d9fd8a46de
commit 02e10a8b8a
12 changed files with 4698 additions and 106 deletions
+12
View File
@@ -0,0 +1,12 @@
import { createNeonAuth } from "@neondatabase/auth/next/server";
export const auth = createNeonAuth({
baseUrl: process.env.NEON_AUTH_BASE_URL!,
cookies: {
secret: process.env.NEON_AUTH_COOKIE_SECRET!,
},
});
export function getSession() {
return auth.getSession();
}