[dyad] wrote 5 file(s)

This commit is contained in:
Michael committed 2025-11-06 15:55:54 +01:00
1 parent 1ce71f37c2
commit 209c48ee6b
4 files changed
+90 -53

No files matched your search

+7 -2
View File
@@ -27,8 +27,13 @@ const App = () => {
useEffect(() => {
// Vérifier le token au démarrage
const checkAuth = async () => {
const isValid = await AuthService.checkTokenValidity();
setIsLoading(false);
try {
await AuthService.checkTokenValidity();
} catch (error) {
console.error("Error checking token validity:", error);
} finally {
setIsLoading(false);
}
};
checkAuth();