update oauth2 (#84)

* update oauth2

* i18n

* fix validation

* chore: auto-fix linting and formatting issues

---------

Co-authored-by: uubulb <uubulb@users.noreply.github.com>
This commit is contained in:
UUBulbanduubulb authored and GitHub committed 2024-12-31 23:11:41 +08:00
1 parent d54372fb0c
commit 5517a8df38
8 files changed
+418 -435

No files matched your search

+377 -379
View File
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -3,6 +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
loginOauth2: () => void
logout: () => void
}