chore: add auth store placeholder for future use

This commit is contained in:
zetaloop
2026-02-20 20:02:29 +08:00
parent 4fd1a3bf00
commit e92657d0dd
+2
View File
@@ -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<AuthState>((set) => ({
isAuthenticated: false,
currentRole: "consumer",
verifiedRoles: ["consumer"],
switchRole: (role) => set({ currentRole: role }),
login: () => set({ isAuthenticated: true }),
logout: () => set({ isAuthenticated: false, currentRole: "consumer" }),