import { betterAuth } from "better-auth";
import { Kysely } from "kysely";
import { NeonHTTPDialect } from "kysely-neon";
import { env } from "$env/dynamic/private";
const db = new Kysely({
dialect: new NeonHTTPDialect({
connectionString: env.DATABASE_URL
})
})
export const auth = betterAuth({
database: db
});
import { betterAuth } from "better-auth";
import { Kysely } from "kysely";
import { NeonHTTPDialect } from "kysely-neon";
import { env } from "$env/dynamic/private";
const db = new Kysely({
dialect: new NeonHTTPDialect({
connectionString: env.DATABASE_URL
})
})
export const auth = betterAuth({
database: db
});