React Query - Authentication Flow