SpaceNinjaServer/src/types/loginTypes.ts
Ordis 96f945267a Revert "2 spaces tab, prettier command"
This reverts commit bd4ea5c94440304768883cae8169315ea15774f8.
2023-06-02 04:11:07 +02:00

47 lines
1016 B
TypeScript

export interface ILoginResponse extends Omit<IDatabaseAccountDocument, "email" | "password"> {
Groups: IGroup[];
Nonce: number;
BuildLabel: string;
MatchmakingBuildId: string;
platformCDNs: string[];
NRS: string[];
DTLS: number;
IRC: string[];
HUB: string;
}
//includes virtual id
export interface IDatabaseAccountDocument extends IDatabaseAccount {
id: string;
}
export interface IGroup {
experiment: string;
experimentGroup: string;
}
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[];
}
export interface ILoginRequest {
email: string;
password: string;
time: number;
s: string;
lang: string;
date: number;
ClientType: string;
PS: string;
}