feat: Added authentication sstem with discord

This commit is contained in:
2023-06-04 22:06:28 +02:00
parent b25699b50b
commit f360dcec8c
11 changed files with 655 additions and 26 deletions

23
webv2/types/global.d.ts vendored Normal file
View 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,
}
}