mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-09 12:27:43 +00:00
docs: fix better auth initalizer typo
This commit is contained in:
@@ -164,7 +164,9 @@ When cookie caching is enabled, the server can check session validity from the c
|
|||||||
To turn on cookie caching, just set `session.cookieCache` in your auth config:
|
To turn on cookie caching, just set `session.cookieCache` in your auth config:
|
||||||
|
|
||||||
```ts title="auth.ts"
|
```ts title="auth.ts"
|
||||||
const auth = new BetterAuth({
|
import { betterAuth } from "better-auth"l
|
||||||
|
|
||||||
|
export const auth = betterAuth({
|
||||||
session: {
|
session: {
|
||||||
cookieCache: {
|
cookieCache: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
|
|||||||
@@ -16,7 +16,9 @@ Calling your database every time `useSession` or `getSession` invoked isn’t id
|
|||||||
To turn on cookie caching, just set `session.cookieCache` in your auth config:
|
To turn on cookie caching, just set `session.cookieCache` in your auth config:
|
||||||
|
|
||||||
```ts title="auth.ts"
|
```ts title="auth.ts"
|
||||||
const auth = new betterAuth({
|
import { betterAuth } from "better-auth";
|
||||||
|
|
||||||
|
export const auth = betterAuth({
|
||||||
session: {
|
session: {
|
||||||
cookieCache: {
|
cookieCache: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user