Rudrang
BABetter Auth
•Created by Rudrang on 2/20/2025 in #help
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).
1 replies