const AuthContext = React.createContext<标签:jira,createContext,undefined,form,22usecontent,笔记,AuthForm,Promise From: https://blog.51cto.com/u_15460007/6052216
| {
user: User | null;
register: (form: AuthForm) => Promise<void>;
login: (form: AuthForm) => Promise<void>;
logout: () => Promise<void>;
}
| undefined
>(undefined);