feat(frontend): Add organization creation, deletion, add better-auth organization plugin
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
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 },
|
||||
user: { modelName: 'better_auth_user' },
|
||||
session: { modelName: 'better_auth_session' },
|
||||
account: { modelName: 'better_auth_account' },
|
||||
verification: { modelName: 'better_auth_verification' }
|
||||
plugins: [organization()]
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user