Ali
Ali
Explore posts from servers
BABetter Auth
Created by Ali on 3/30/2025 in #help
Invalidate useSession()?
I'm using authClient.updateUser() to update user's name, but I want to make sure the new name is reflected in the useSession return value before performing a url change. Any way to make sure of that? Anything like Tanstack Query's .invalidateQueries()? I see there's refetch() on useSession() but it doesn't return a promise for me to make sure the refetch is completed.
6 replies