diff --git a/src/components/AuthUser/AuthContext.tsx b/src/components/AuthUser/AuthContext.tsx index b4418b9eee392463c318ed4e48fcd3c654a8da39..584aeb648406a755445a50c1a361692ee4a65180 100644 --- a/src/components/AuthUser/AuthContext.tsx +++ b/src/components/AuthUser/AuthContext.tsx @@ -3,12 +3,18 @@ import { createContext } from 'react'; export type AuthData = { role: string; + isAuth: boolean; setRole: (role: string) => void; + setIsAuth: (state: boolean) => void; }; export const AuthContext = createContext<AuthData>({ role: Roles.visitor, + isAuth: false, setRole: () => { // Do nothing }, + setIsAuth: () => { + // Do nothing + }, });