mirror of
https://github.com/R0m1k3/noteflow.git
synced 2026-10-22 14:48:18 +02:00
[dyad] wrote 5 file(s)
This commit is contained in:
1 parent
1ce71f37c2
commit
209c48ee6b
4 files changed
+90
-53
No files matched your search
+7
-2
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user