getCookieCache returns null?

So I am using NextJS, and have set everything up. For the most part BetterAuth works awesome. I want to use the getCookieCache method, so I enable cookie caching in my auth.ts. However, when I look at the docs, and implement the middleware check, my getCookieCache is always null, even when there is a session.
1 Reply
Tyler
TylerOP4mo ago
const sessionCookie = getSessionCookie(request);
console.log("Session cookie:", sessionCookie);
const session = await getCookieCache(request);
console.log("Session:", session);
const sessionCookie = getSessionCookie(request);
console.log("Session cookie:", sessionCookie);
const session = await getCookieCache(request);
console.log("Session:", session);
session cookie is set, cookie cache is null zzz im dumb, had enbaled instead of enabled in my auth.ts

Did you find this page helpful?