-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Im trying to set this on an existing project where Im using betterauth.
Running into issues.
Is this still valid?
import { betterAuth } from "better-auth"
import { abac, createAbacAdapter } from "better-auth-abac"
// Initialize your database adapter
const abacAdapter = await createAbacAdapter({
type: "mysql" // mysql | postgres | sqlite
uri: process.env.DB_URL!
// filename: "./db" // OPTIONAL FOR SQLITE
})
export const auth = betterAuth({
// other options here
plugins: [abac(abacAdapter)]
})The interface shows this:
interface AbacAdapterConfig {
db: MysqlConfig | PostgresConfig | SqliteConfig;
}Also in the plugin array, I think the docs should be updated to show:
abac(abacAdapter, false)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels