Skip to content

Instantly share code, notes, and snippets.

@gue-ni
gue-ni / [...nextauth].js
Last active April 22, 2024 17:13
NextAuth.js postgres adapter
import NextAuth from "next-auth";
import GoogleProvider from "next-auth/providers/google";
import PostgresAdapter from "../../../lib/adapter";
const pool = new Pool({
user: "postgres",
host: "localhost",
database: "postgres",
password: "postgres",
port: 5432,