Files
mixtape/zero.Backoffice.UI/app/account/store.ts
T

13 lines
285 B
TypeScript
Raw Normal View History

2021-12-09 14:18:38 +01:00
import { defineStore } from 'pinia';
import { AccountStoreState } from 'zero/account';
export const useAccountStore = defineStore('zero.account', {
state: () => ({
user: undefined
} as AccountStoreState),
getters: {
isAuthenticated: state => state.user != null
}
});