SpaceNinjaServer/src/types/loginTypes.ts

48 lines
1.0 KiB
TypeScript
Raw Normal View History

2023-05-19 15:22:48 -03:00
export interface ILoginResponse extends Omit<IDatabaseAccountDocument, "email" | "password"> {
Groups: IGroup[];
BuildLabel: string;
MatchmakingBuildId: string;
platformCDNs: string[];
NRS: string[];
DTLS: number;
IRC: string[];
HUB: string;
2023-05-19 15:22:48 -03:00
}
// Includes virtual ID
2023-05-19 15:22:48 -03:00
export interface IDatabaseAccountDocument extends IDatabaseAccount {
id: string;
2023-05-19 15:22:48 -03:00
}
export interface IGroup {
experiment: string;
experimentGroup: string;
2023-05-19 15:22:48 -03:00
}
export interface IDatabaseAccount {
email: string;
password: string;
DisplayName: string;
CountryCode: string;
ClientType: string;
CrossPlatformAllowed: boolean;
ForceLogoutVersion: number;
AmazonAuthToken?: string;
AmazonRefreshToken?: string;
ConsentNeeded: boolean;
TrackedSettings: string[];
2024-05-28 13:45:06 +02:00
Nonce: number;
LastLoginDay?: number;
2023-05-19 15:22:48 -03:00
}
export interface ILoginRequest {
email: string;
password: string;
time: number;
s: string;
lang: string;
date: number;
ClientType: string;
PS: string;
2023-05-19 15:22:48 -03:00
}