feat: oauth2 登录

This commit is contained in:
naiba
2024-12-28 23:50:24 +08:00
parent f48d0a6393
commit 718bff0abb
12 changed files with 926 additions and 753 deletions
+1
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
}