kodama-ui
Version:
Kodama UI is a Vue 3 component library that provides a set of components & funcionality to build your application.
18 lines (17 loc) • 576 B
TypeScript
export type AuthStore = {
presist: boolean;
state: () => any;
getters: {
isLoggedIn: (state: any) => boolean;
isBoss: (state: any) => boolean;
email: (state: any) => string;
name: (state: any) => string;
profile: (state: any) => any;
checkRoles: (state: any, strict: boolean, roles: string[]) => boolean;
};
actions: {
login: (username: string, password: string) => Promise<any>;
forgot: (email: string) => Promise<any>;
logout: (email: string) => boolean;
};
};