13 lines
281 B
TypeScript
13 lines
281 B
TypeScript
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();
|
|
}
|