Security Hardening

This commit is contained in:
Koncept Kit
2026-01-07 14:03:32 +07:00
parent c54eb23689
commit 5377a0f465
3 changed files with 81 additions and 13 deletions

View File

@@ -1,6 +1,7 @@
import React, { useState, useEffect, useCallback, useRef } from 'react';
import { useNavigate } from 'react-router-dom';
import { useAuth } from '../context/AuthContext';
import logger from '../utils/logger';
import {
Dialog,
DialogContent,
@@ -108,9 +109,9 @@ const IdleSessionWarning = () => {
// Reset activity timer
resetActivityTimer();
console.log('[IdleSessionWarning] Session extended successfully');
logger.log('[IdleSessionWarning] Session extended successfully');
} catch (error) {
console.error('[IdleSessionWarning] Failed to extend session:', error);
logger.error('[IdleSessionWarning] Failed to extend session:', error);
// If refresh fails, logout
handleSessionExpired();