feat: oauth2 登录

This commit is contained in:
naiba
2024-12-28 23:50:24 +08:00
parent fbf931293e
commit 97a5deb648
12 changed files with 926 additions and 753 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -3,5 +3,6 @@ import { ModelProfile } from "@/types"
export interface AuthContextProps {
profile: ModelProfile | undefined
login: (username: string, password: string) => void
loginOauth2: (provider: string, state: string, code: string) => void
logout: () => void
}