sharedutils/sharedauth/sharedauth.go

46 lines
675 B
Go
Raw Normal View History

2023-01-24 13:46:17 +00:00
package sharedauth
2023-03-11 12:54:52 +00:00
import (
"time"
)
2023-01-24 13:46:17 +00:00
type InstallIdRegisterReq struct {
InstallId InstallId
}
type InstallId string
func (id InstallId) Validate() bool {
//TODO: More checks
return id != ""
}
type RedirResp struct {
RedirectUrl string
}
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 SkirdaUser struct {
2023-03-11 13:02:51 +00:00
SkirdaUserId string `json:"skirdauserid"`
Username string `json:"username"`
UserDomains []string `json:"userdomains"`
}