10 lines
294 B
TypeScript
10 lines
294 B
TypeScript
import { betterAuth } from 'better-auth'
|
|
import Database from 'better-sqlite3'
|
|
import { organization } from 'better-auth/plugins'
|
|
|
|
export const auth = betterAuth({
|
|
database: new Database('./sqlite.db'),
|
|
emailAndPassword: { enabled: true, autoSignIn: false },
|
|
plugins: [organization()]
|
|
})
|