Open Issues Need Help
View All on GitHubAI Summary: The task is to debug and fix an authentication flow error that occurs when unauthenticated users refresh pages. The error, 'Refresh token not found', stems from the client attempting token refresh even without a valid session. The solution involves refining the client-side authentication check to prevent unnecessary refresh token requests when no token exists, potentially through improved conditional logic, middleware, or refactoring of the `AuthGate` component and `baseQueryWithReAuth` function within the RTK Query setup. The goal is to create a more robust and efficient authentication flow that gracefully handles unauthenticated page refreshes without generating unnecessary error logs.
A centralized B2C (Business-to-Consumer) e-commerce platform where a superadmin manages multiple admin accounts. Admins handle products, categories, orders, and customer management. Customers browse and purchase items directly from the store. No vendor involvement – all operations are controlled by internal admins. Built for streamlined retail oper