arth
Explore posts from serversBABetter Auth
•Created by arth on 4/2/2025 in #bug-reports
getSessionCookie does not work in middleware
I was trying to use getSessionCookie just now with my middleware and i kept getting null.
getSessionCookie
is imported in the above snippet via import { getSessionCookie } from "better-auth/cookies";
i replaced it with a super simple stand-in util like this for now:
it works. but i hope yall find and fix the issue.
more info on the env:
3 replies