From 2ebea35e5ddd911df41d252bf1a49f8790aafde4 Mon Sep 17 00:00:00 2001 From: ALAMI Adnane Date: Tue, 29 Apr 2025 00:03:44 +0200 Subject: [PATCH] fix: confits --- front/MyINPulse-front/src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/front/MyINPulse-front/src/main.ts b/front/MyINPulse-front/src/main.ts index 19e6818..e6c4ba0 100644 --- a/front/MyINPulse-front/src/main.ts +++ b/front/MyINPulse-front/src/main.ts @@ -37,7 +37,7 @@ type TokenPayload = { }; }; -function isAdmin(){ +function isAdmin(): boolean { if (store.authenticated && store.user.token) { try { const decoded = jwtDecode(store.user.token); @@ -97,4 +97,4 @@ app.use(VueKeyCloak,{ } ); */ -export { store }; +export { store, isAdmin };