fix: confits

This commit is contained in:
ALAMI Adnane 2025-04-29 00:03:44 +02:00
parent 8b48a55bf0
commit 2ebea35e5d

View File

@ -37,7 +37,7 @@ type TokenPayload = {
};
};
function isAdmin(){
function isAdmin(): boolean {
if (store.authenticated && store.user.token) {
try {
const decoded = jwtDecode<TokenPayload>(store.user.token);
@ -97,4 +97,4 @@ app.use(VueKeyCloak,{
} );
*/
export { store };
export { store, isAdmin };