Eliminated debug logs ('tr123' and 'tr246') from the mail route handler to clean up the codebase. These statements were not serving any functional purpose and were likely left behind from debugging.
Removed redundant logging statements to improve code clarity and maintainability. Also added signOut call in deleteActiveConnection to ensure proper cleanup of user sessions.
Implemented error handling for missing OAuth scopes, displaying user-friendly messages in the login flow. Enhanced TRPC middleware and client logic to trigger logout and redirect users to a dedicated error state. Refactored error indicator components to ensure UI consistency.