File size: 227 Bytes
2efe57e
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
import { createContext } from "react";

interface AuthContextType {
  isAuthenticated: boolean;
  login: (token: string) => void;
  logout: () => void;
}

export const AuthContext = createContext<AuthContextType | null>(null);