aboutsummaryrefslogtreecommitdiff
path: root/src/type/userTypes.ts
blob: cafc9c63aa196327b887a412480021fe4c7d47bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { URL } from "url";

export type UserAvatar = {
        iconUrls: URL[];
};
export type User = {
        id: number;
        userName: string;
        dateJoined: number;
        lastSeen: number;
        passwordHash: string;
        // avatar: UserAvatar;
};
export type AuthData = {
        success: boolean;
        hasProfile: boolean;
        exists: boolean;
        authMessage: string;
        authResponseTimestampMillis: number;
}