ip address can't set database

import { db } from "@/db";
import * as schema from "@/db/schema";
import { betterAuth } from "better-auth";
import { drizzleAdapter } from "better-auth/adapters/drizzle";
import { nextCookies } from "better-auth/next-js";
import {
    admin as adminPlugin,
    openAPI,
    organization,
    twoFactor,
    username,
} from "better-auth/plugins";

export const auth = betterAuth({
    database: drizzleAdapter(db, {
        provider: "pg",
        schema: {
            ...schema,
        },
    }),
    emailAndPassword: {
        enabled: true,
    },
    plugins: [
        adminPlugin({}),
        username(),
        twoFactor(),
        organization(),
        openAPI(),
        nextCookies(),
    ],
});
image.png
Was this page helpful?