feat: Added authentication sstem with discord
This commit is contained in:
23
webv2/types/global.d.ts
vendored
Normal file
23
webv2/types/global.d.ts
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
export {}
|
||||
|
||||
declare global {
|
||||
interface IUser {
|
||||
_id: string,
|
||||
username: string,
|
||||
discord: {
|
||||
id: string,
|
||||
username: string,
|
||||
avatarHash: string
|
||||
},
|
||||
minecraft?: {
|
||||
uuid: string,
|
||||
username: string
|
||||
},
|
||||
teamInvites: string[],
|
||||
role: {
|
||||
admin: boolean,
|
||||
moderator: boolean,
|
||||
},
|
||||
teamId: string,
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user