Empty session in client after login and too many redirect

hello,
i'm try to login with username and password, its success but have no session available, it does have the cookie on the browser

but in middleware, the session its exist, but it the client using useSession() its not showing
using better-auth v.1.2.7

its also got error too many redirect on useSession() hooks

what could be the problem?
image.png
Was this page helpful?