Compare commits

...

2 Commits

Author SHA1 Message Date
982b60bde6 new structs for api 2023-01-15 15:20:34 +03:00
d30e5633e9 rename package 2023-01-15 15:20:25 +03:00
2 changed files with 31 additions and 3 deletions

View File

@ -1,5 +1,33 @@
package sharedauth package sharedauth
type InstallId struct { import "time"
InstallId string
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 ValidateReq struct {
LauncherToken string
}
type ValidateResp struct {
} }

View File

@ -1,4 +1,4 @@
package sharedUtils package sharedDistribution
import ( import (
"time" "time"