SolidJS useSession hook - refetch

I'm trying to use the solidjs hook for the store of the useSession hook and got everything working in terms of loading user data in etc, only thing i want to to is force a refetch of the session and noticed when debugging there is a refetch method attached to the hook but it's not declared in the types ie
        const session = authClient.useSession();
               await session().refetch();

the above actually works just want to double check if this is the intended way to go about it? or should i be relying on a separate store outside of what im using from the hook
Solution
yeah it's intended
Was this page helpful?