front_foundation #9

Closed
mohamed_maoulainine wants to merge 181 commits from front_foundation into main
Showing only changes of commit 2ebea35e5d - Show all commits

View File

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