首页 > 其他分享 >学习笔记jira项目21-jwt原理和auth-provide

学习笔记jira项目21-jwt原理和auth-provide

时间:2023-02-12 22:05:51浏览次数:45  
标签:jira createContext 21 form provide AuthForm Promise undefined


const AuthContext = React.createContext<
| {
user: User | null;
register: (form: AuthForm) => Promise<void>;
login: (form: AuthForm) => Promise<void>;
logout: () => Promise<void>;
}
| undefined
>(undefined);

标签:jira,createContext,21,form,provide,AuthForm,Promise,undefined
From: https://blog.51cto.com/u_15460007/6052217

相关文章