diff --git a/store/auth.ts b/store/auth.ts index 7e2ae75..97acc69 100644 --- a/store/auth.ts +++ b/store/auth.ts @@ -4,6 +4,7 @@ import type { UserRole } from "@/lib/types" interface AuthState { isAuthenticated: boolean currentRole: UserRole + verifiedRoles: UserRole[] switchRole: (role: UserRole) => void login: () => void logout: () => void @@ -12,6 +13,7 @@ interface AuthState { export const useAuthStore = create((set) => ({ isAuthenticated: false, currentRole: "consumer", + verifiedRoles: ["consumer"], switchRole: (role) => set({ currentRole: role }), login: () => set({ isAuthenticated: true }), logout: () => set({ isAuthenticated: false, currentRole: "consumer" }),