feat: oauth2 登录

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

No files matched your search

+736 -704
View File
File diff suppressed because it is too large. Load diff
+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
}