fix: confits
This commit is contained in:
parent
8b48a55bf0
commit
2ebea35e5d
@ -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 };
|
||||
|
Loading…
x
Reference in New Issue
Block a user