import React, { Dispatch, SetStateAction } from "react"; import { Credentials } from "../app"; export interface AuthContext { isLoggedIn: boolean; setIsLoggedIn: Dispatch>; clientId: string; clientSecret: string; access_token: string; setCredentials: Dispatch> setAccess_token: Dispatch>; } const authContext = React.createContext({ isLoggedIn: false, setIsLoggedIn() {}, access_token: "", clientId: "", clientSecret: "", setCredentials(){}, setAccess_token() {}, }); export default authContext;