refactor(auth): remove debug logging from authentication processes
- Eliminated extensive console logging in the auth controller, deserialize, serialize, and passport strategies to streamline code and improve performance. - Simplified response handling in the auth controller by directly returning the AuthResponse object. - Updated session middleware to enhance clarity and maintainability by removing unnecessary debug functions and logs.
This commit is contained in:
@@ -7,10 +7,7 @@ import { colors } from '../styles/colors';
|
||||
import { verifyAuthentication } from '@/features/auth/authSlice';
|
||||
import { useEffect, useState } from 'react';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
import HubSpot from '@/components/HubSpot';
|
||||
import LicenseAlert from '@/components/license-alert';
|
||||
import { useAuthService } from '@/hooks/useAuth';
|
||||
import { ILocalSession } from '@/types/auth/local-session.types';
|
||||
|
||||
const MainLayout = () => {
|
||||
const themeMode = useAppSelector(state => state.themeReducer.mode);
|
||||
@@ -33,18 +30,6 @@ const MainLayout = () => {
|
||||
void verifyAuthStatus();
|
||||
}, [dispatch, navigate]);
|
||||
|
||||
const handleUpgrade = () => {
|
||||
// Handle upgrade logic here
|
||||
console.log('Upgrade clicked');
|
||||
// You can navigate to upgrade page or open a modal
|
||||
};
|
||||
|
||||
const handleExtend = () => {
|
||||
// Handle license extension logic here
|
||||
console.log('Extend license clicked');
|
||||
// You can navigate to renewal page or open a modal
|
||||
};
|
||||
|
||||
const alertHeight = showAlert ? 64 : 0; // Fixed height for license alert
|
||||
|
||||
const headerStyles = {
|
||||
@@ -59,7 +44,7 @@ const MainLayout = () => {
|
||||
} as const;
|
||||
|
||||
const contentStyles = {
|
||||
paddingInline: isDesktop ? 64 : 24,
|
||||
paddingInline: isDesktop ? 0 : 24,
|
||||
overflowX: 'hidden',
|
||||
marginTop: alertHeight + 64, // Adjust top margin based on alert height + navbar height
|
||||
} as const;
|
||||
|
||||
@@ -169,7 +169,7 @@ const ProjectView = () => {
|
||||
), []);
|
||||
|
||||
return (
|
||||
<div style={{ marginBlockStart: 80, marginBlockEnd: 24, minHeight: '80vh' }}>
|
||||
<div style={{ marginBlockStart: 15, marginBlockEnd: 24, minHeight: '80vh' }}>
|
||||
<ProjectViewHeader />
|
||||
|
||||
<Tabs
|
||||
|
||||
Reference in New Issue
Block a user