Is there a more idiomatic way to do this? Getting Auth Data from Server and Client - TanStack