docs: fix better auth initalizer typo

This commit is contained in:
Bereket Engida
2025-04-18 18:29:53 +03:00
parent a368d9636d
commit 3f574ec70b
2 changed files with 6 additions and 2 deletions

View File

@@ -16,7 +16,9 @@ Calling your database every time `useSession` or `getSession` invoked isnt id
To turn on cookie caching, just set `session.cookieCache` in your auth config:
```ts title="auth.ts"
const auth = new betterAuth({
import { betterAuth } from "better-auth";
export const auth = betterAuth({
session: {
cookieCache: {
enabled: true,