2023-01-24 13:46:17 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
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 {
|
|
|
|
}
|
2023-03-09 13:54:19 +00:00
|
|
|
|
|
|
|
type SkirdaUser struct {
|
|
|
|
Id string
|
|
|
|
Username string
|
|
|
|
}
|