ARES - authorized red-team engagement automation with dashboard, campaign scope, module orchestration, OPSEC controls, encrypted vault, and reporting.
Python active-directorycloud-securitydefensive-validationfastapigood-first-issuemitre-attackopsecreactred-teamreportingsecurity
import { createContext, useContext } from "react";
import type { UserProfile } from "../../api/types";
export interface AuthState {
user: UserProfile | null;
loading: boolean;
login: (username: string, password: string) => Promise<void>;
logout: () => Promise<void>;
logoutAll: () => Promise<void>;
}
export const AuthContext = createContext<AuthState | null>(null);
export function useAuth(): AuthState {
const value = useContext(AuthContext);
if (!value) {
throw new Error("AuthContext missing");
}
return value;
}