Cookie based authentication approach - TanStack