Nextjs middleware not working

In this i am using the getSessionCookies()

but the sessionCookie returns as null

i am using the cookiePrefix also

my session also getting from useSession
i checked the cookies in the network also after the session checking it is also there

my frontend is next js in local enviornment and the backend is in elysia js in deployed version


do any know how to fix this
image.png
image.png
Was this page helpful?
Nextjs middleware not working - Better Auth