Fix jwt-token

This commit is contained in:
2025-09-24 05:48:28 +02:00
parent 0cd7328748
commit 5d4ee01612

View File

@@ -1,9 +1,9 @@
import React, { useState, useEffect, useContext } from 'react'; import React, { useState, useEffect } from 'react';
import { AuthContext } from '../contexts/AuthContext'; import { useAuth } from '../contexts/AuthContext';
import { formatDistanceToNow } from 'date-fns'; import { formatDistanceToNow } from 'date-fns';
const SecurityLogs = () => { const SecurityLogs = () => {
const { user, tenant } = useContext(AuthContext); const { user, tenant } = useAuth();
const [logs, setLogs] = useState([]); const [logs, setLogs] = useState([]);
const [loading, setLoading] = useState(true); const [loading, setLoading] = useState(true);
const [error, setError] = useState(null); const [error, setError] = useState(null);