From 3933b4e16fe067d5ef2eafe0fc96f3f4729f0a53 Mon Sep 17 00:00:00 2001 From: cyber-dream Date: Mon, 13 Mar 2023 13:38:16 +0300 Subject: [PATCH] change sharedUser --- sharedauth/sharedauth.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/sharedauth/sharedauth.go b/sharedauth/sharedauth.go index 4300bb6..82db419 100644 --- a/sharedauth/sharedauth.go +++ b/sharedauth/sharedauth.go @@ -39,7 +39,13 @@ type ValidateResp struct { } type SkirdaUser struct { - SkirdaUserId string `json:"skirdauserid"` - Username string `json:"username"` - UserDomains []string `json:"userdomains"` + SkirdaUserId string `bson:"skirdauserid" json:"skirdauserid"` + DiscordId string `bson:"discordid" json:"-"` + Username string `bson:"username" json:"username"` + UserDomains []string `bson:"userdomains" json:"userdomains"` + Installs []LauncherInstall `bson:"installs" json:"-"` +} + +type LauncherInstall struct { + InstallId string `bson:"installid"` }