feat: login & check user

This commit is contained in:
naiba
2024-11-03 23:29:32 +08:00
parent 772d66334e
commit b1a0b607da
10 changed files with 157 additions and 11 deletions

View File

@@ -2,6 +2,6 @@ import { User } from "./user";
export interface AuthContextProps {
profile: User | undefined;
login: (profile: User | undefined) => void;
login: (username: string, password: string) => void;
logout: () => void;
}