new structs for api

This commit is contained in:
cyber-dream 2023-01-15 15:20:34 +03:00
parent d30e5633e9
commit 982b60bde6

View File

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