feat(oauth): Add certification component for handling OAuth login callbacks and improve user authentication flow

This commit is contained in:
web@ppanel
2025-01-20 23:50:42 +07:00
parent 652e0323fd
commit 5ed04c0a59
34 changed files with 327 additions and 12 deletions
+13
View File
@@ -19,6 +19,9 @@ declare namespace API {
};
type ApplicationConfig = {
app_id: number;
encryption_key: string;
encryption_method: string;
domains: string[];
startup_picture: string;
startup_picture_skip_time: number;
@@ -226,6 +229,16 @@ declare namespace API {
last_at: number;
};
type OAuthMethod = {
id: number;
platform: string;
config: Record<string, any>;
redirect: string;
enabled: boolean;
created_at: number;
updated_at: number;
};
type OnlineUser = {
uid: number;
ip: string;