Better AuthBA
Better Auth•11mo ago
Rudrang

useSession's isPending doesn't work correctly when cookieCache is enabled.

Pretty much the title 😦

I am using authClient.useSession in a client component (navbar) and conditionally rendering "sign in"/ "my account" links. Unfortunately, whenever I refresh, isPending never hits false if cookieCache is enabled. In auth file, i also pass the nextCookies() plugin (in the end).
Was this page helpful?