Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (20 sloc) 458 Bytes
import React from "react";
interface AuthProps {
token: string;
userId: string;
interface AuthMethods {
login(userId: string, password: string): void;
logout(): void;
type AuthContext = { info: AuthProps | null } & AuthMethods;
const context = React.createContext<AuthContext>({
info: null,
login(): void {
throw Error("Not Implemented!");
logout(): void {
throw Error("Not Implemented!");
export default context;
You can’t perform that action at this time.