添加Apple登录

This commit is contained in:
xianyi
2026-01-16 09:58:07 +08:00
parent cc88c283ce
commit 370f04d721
8 changed files with 521 additions and 46 deletions

View File

@@ -431,3 +431,47 @@ export interface H2HData {
firstTeamResults: H2HMatch[];
secondTeamResults: H2HMatch[];
}
export interface AppleSignInRequest {
authorizationCode: string;
deviceInfo: {
deviceId: string;
platform: string;
platformVersion: string;
};
identityToken: string;
user?: {
name?: {
firstName?: string;
lastName?: string;
};
};
}
export interface AppleSignInResponse {
accessToken: string;
expiresIn: number;
refreshToken: string;
user: {
id: number;
appleId: string;
nickname: string;
avatar: string;
};
}
export interface RefreshTokenRequest {
refreshToken: string;
}
export interface RefreshTokenResponse {
accessToken: string;
expiresIn: number;
}
export interface UserProfile {
id: number;
appleId: string;
nickname: string;
avatar: string;
}