This commit is contained in:
Paolo Arena
2021-09-02 21:29:24 +02:00
parent 04a9ce2232
commit 1c3df0fac1
21 changed files with 1291 additions and 673 deletions

View File

@@ -174,6 +174,14 @@ export const useUserStore = defineStore('UserStore', {
return (trovato) || null
},
isTokenInvalid: (state: IUserState) => {
try {
return (state.my.tokens!.length <= 0)
} catch (e) {
return true
}
},
isUserInvalid: (state: IUserState): boolean => {
try {
return (state.my._id === undefined) || (state.my._id.trim() === '')