[dyad] wrote 4 file(s)

This commit is contained in:
Michael committed 2025-11-06 15:58:55 +01:00
1 parent 209c48ee6b
commit 0bcffed331
4 files changed
+145 -61

No files matched your search

+4 -1
View File
@@ -28,7 +28,10 @@ const App = () => {
// Vérifier le token au démarrage
const checkAuth = async () => {
try {
await AuthService.checkTokenValidity();
// Vérifier si le token est valide
if (AuthService.getToken()) {
await AuthService.checkTokenValidity();
}
} catch (error) {
console.error("Error checking token validity:", error);
} finally {