48 lines
690 B
Go
48 lines
690 B
Go
package sharedauth
|
|
|
|
import (
|
|
"time"
|
|
|
|
"git.gregbrzezinski.com/Skirda/skirdaGoLauncher/sharedutils/domain"
|
|
)
|
|
|
|
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 {
|
|
Id string
|
|
Username string
|
|
UserDomains []domain.SkirdaDomain
|
|
}
|