package sharedauth import ( "time" ) type InstallIdRegisterReq struct { InstallId InstallId } type InstallId string func (id InstallId) Validate() bool { //TODO: More checks return id != "" } type RedirResp struct { RedirectUrl string `json:"redirecturl"` RequestId string `json:"requestid"` } type LauncherSession struct { // Username string // DiscordId string SessionToken string InstallId string Expiry time.Time } type ProfileResp struct { Username string } type ValidateReq struct { LauncherToken string } type ValidateResp struct { } type SkirdaUserResp struct { SkirdaUserId string `json:"skirdauser_id"` Username string `json:"username"` Token string `json:"token"` }