fix better auth config

This commit is contained in:
Nayan Sawyer
2026-03-14 14:17:29 -04:00
parent b26c9f44f8
commit 4dc92b6541
2 changed files with 3 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
import { createAuthClient } from "better-auth/client";
import { createAuthClient } from "better-auth/react";
export const authClient = createAuthClient({
baseURL: process.env.BETTER_AUTH_URL!,

View File

@@ -1,10 +1,12 @@
import { betterAuth } from "better-auth";
import { drizzleAdapter } from "better-auth/adapters/drizzle";
import { db } from "@/db/drizzle";
import * as authSchema from "../../auth-schema";
export const auth = betterAuth({
database: drizzleAdapter(db, {
provider: "pg",
schema: authSchema,
}),
emailAndPassword: {
enabled: true,