mirror of
https://github.com/R0m1k3/noteflow.git
synced 2026-10-19 05:09:54 +02:00
[dyad] wrote 4 file(s)
This commit is contained in:
1 parent
209c48ee6b
commit
0bcffed331
4 files changed
+145
-61
No files matched your search
+4
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user