parent
2793a5da3a
commit
4ac5a27bab
@ -0,0 +1,12 @@ |
||||
import { defineStore } from "pinia" |
||||
import { isEmpty } from "lodash" |
||||
|
||||
export const useSecurityStore = defineStore("security", { |
||||
state: () => ({ |
||||
user: null, |
||||
}), |
||||
|
||||
getters: { |
||||
isAuthenticated: (state) => !isEmpty(state.user), |
||||
}, |
||||
}) |
Loading…
Reference in new issue