New Admin Dashboard
This commit is contained in:
@@ -4,7 +4,15 @@ import {Preferences} from "@capacitor/preferences";
|
||||
|
||||
export const useAuthStore = defineStore("auth", {
|
||||
state: () => ({
|
||||
user: null as null | { user_id: string; email: string; tenant_id?: string; role?: string },
|
||||
user: null as null | {
|
||||
id?: string;
|
||||
user_id?: string;
|
||||
email: string;
|
||||
tenant_id?: string;
|
||||
role?: string;
|
||||
must_change_password?: boolean;
|
||||
is_admin?: boolean;
|
||||
},
|
||||
profile: null as null | any,
|
||||
tenants: [] as { tenant_id: string; role: string; tenants: { id: string; name: string } }[],
|
||||
permissions: [] as string[],
|
||||
|
||||
Reference in New Issue
Block a user