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 };