chore: init

This commit is contained in:
Cfp
2025-06-20 16:37:16 +02:00
commit 70516441f2
9 changed files with 625 additions and 0 deletions

15
src/auth.ts Normal file
View File

@ -0,0 +1,15 @@
import { betterAuth } from "better-auth";
import { username } from "better-auth/plugins";
import { pool } from "./db";
export const auth = betterAuth({
database: pool,
emailAndPassword: {
enabled: true
},
plugins: [
username({
minUsernameLength: 3
})
]
});