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