feat(36-02): add isAdmin to AuthState interface in useAuth.ts
This commit is contained in:
@@ -2,7 +2,7 @@ import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
||||
import { apiDelete, apiGet, apiPost } from "../lib/api";
|
||||
|
||||
interface AuthState {
|
||||
user: { id: string; email?: string; createdAt?: string } | null;
|
||||
user: { id: string; email?: string; createdAt?: string; isAdmin?: boolean } | null;
|
||||
authenticated: boolean;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user